Search Postgresql Archives

Re: Establishing a local connection to PostgreSQL 9.6 takes seconds

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for the immediate reply.

It turned out to be pg_attribute. It was bloated probably due to the large number of temp tables created. 
Are there any recommendations on how to prevent such a bloat from happening?

On Wed, Jun 16, 2021 at 4:10 PM Tom Lane <tgl@xxxxxxxxxxxxx> wrote:
Marcin Barczynski <mbarczynski@xxxxxxxxxxxxxxxxxxx> writes:
> It's always /opt/prod/pg/9.6/base/18370/1108887031. Unfortunately, no trace
> of it in pg_class:

It's probably a mapped system catalog, which will have relfilenode = 0.
Try

SELECT relname FROM pg_class WHERE pg_relation_filenode(oid) = 1108887031;

My guess is that whichever catalog it is is badly bloated.

                        regards, tom lane


--
Marcin Barczyński | Senior Software Engineer  | 

mbarczynski@xxxxxxxxxxxxxxxxxxx | http://www.starfishstorage.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux