Re: ogr2ogr slow sql when checking system tables for column info and so on. - Mailing list pgsql-performance

From Lars Aksel Opsahl
Subject Re: ogr2ogr slow sql when checking system tables for column info and so on.
Date
Msg-id AM7P189MB102864589B75ED98187D698B9D2D9@AM7P189MB1028.EURP189.PROD.OUTLOOK.COM
Whole thread Raw
In response to Re: ogr2ogr slow sql when checking system tables for column info and so on.  (Julien Rouhaud <rjuju123@gmail.com>)
List pgsql-performance



From: Julien Rouhaud <rjuju123@gmail.com>
Sent: Friday, October 21, 2022 12:41 PM
To: Lars Aksel Opsahl <Lars.Opsahl@nibio.no>
Cc: pgsql-performance@lists.postgresql.org <pgsql-performance@lists.postgresql.org>
Subject: Re: ogr2ogr slow sql when checking system tables for column info and so on.
 
>From: Julien Rouhaud <rjuju123@gmail.com>Sent: Friday, October 21, 2022 12:41 PMTo: Lars Aksel Opsahl <Lars.Opsahl@nibio.no>Cc: pgsql-performance@lists.postgresql.org <pgsql-performance@lists.postgresql.org>Subject: Re: ogr2ogr slow sql when checking system tables for column info and so on.
>
>
>What do you mean by sometimes?  If you only have non frequent or specialized
>jobs the creates a lot of temp tables, you just need to modify them to issue
>some VACUUM (not VACUUM FULL) at the end, or regularly if you creates millions
>of tables in a single job.
>

Hi again.

In this case the only thing that solved this performance issue was VACUUM FULL so to be sure we have run VACUUM FULL and not only VACUUM ANALYZE

It's a lot of different  people using this server and many do not have rights to run vacuum on system tables and we do not want many people to run vacuum full at the same time either.

So we have to set up this as a schedueld  or triggered job as you suggest.

Thanks again.

Lars

pgsql-performance by date:

Previous
From: Julien Rouhaud
Date:
Subject: Re: ogr2ogr slow sql when checking system tables for column info and so on.
Next
From: Ramdip Gill
Date:
Subject: =ANY(ARRAY) vs =ANY(ARRAY(expr)) performance