Re: ogr2ogr slow sql when checking system tables for column info and so on.

From: Lars Aksel Opsahl <Lars(dot)Opsahl(at)nibio(dot)no>
To: Julien Rouhaud <rjuju123(at)gmail(dot)com>
Cc: "pgsql-performance(at)lists(dot)postgresql(dot)org" <pgsql-performance(at)lists(dot)postgresql(dot)org>
Subject: Re: ogr2ogr slow sql when checking system tables for column info and so on.
Date: 2022-10-21 11:41:26
Message-ID: AM7P189MB102864589B75ED98187D698B9D2D9@AM7P189MB1028.EURP189.PROD.OUTLOOK.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

________________________________
From: Julien Rouhaud <rjuju123(at)gmail(dot)com>
Sent: Friday, October 21, 2022 12:41 PM
To: Lars Aksel Opsahl <Lars(dot)Opsahl(at)nibio(dot)no>
Cc: pgsql-performance(at)lists(dot)postgresql(dot)org <pgsql-performance(at)lists(dot)postgresql(dot)org>
Subject: Re: ogr2ogr slow sql when checking system tables for column info and so on.

>From: Julien Rouhaud <rjuju123(at)gmail(dot)com>Sent: Friday, October 21, 2022 12:41 PMTo: Lars Aksel Opsahl <Lars(dot)Opsahl(at)nibio(dot)no>Cc: pgsql-performance(at)lists(dot)postgresql(dot)org <pgsql-performance(at)lists(dot)postgresql(dot)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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Peter J. Holzer 2022-10-22 09:32:32 Re: Explain returns different number of rows
Previous Message Julien Rouhaud 2022-10-21 10:41:59 Re: ogr2ogr slow sql when checking system tables for column info and so on.