Re: pg_upgrade's get_rel_infos_query() query can sometimes be slow

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: David Rowley <dgrowleyml(at)gmail(dot)com>
Cc: PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: pg_upgrade's get_rel_infos_query() query can sometimes be slow
Date: 2026-11-27 08:21:09
Message-ID: DFC96B4D-5E6F-4A51-A19E-8D62816ACFEA@yesql.se
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 27 Nov 2026, at 04:51, David Rowley <dgrowleyml(at)gmail(dot)com> wrote:
>
> On Fri, 27 Nov 2026 at 15:30, David Rowley <dgrowleyml(at)gmail(dot)com> wrote:
>> I was thinking I'd just patchify the david1.sql and put that in
>> get_rel_infos_query().
>
> Here's a patch that installs the query into get_rel_infos_query().

No objections, from what I can tell the queries are equal in terms in
projection.

While I don't have any datasets left, I know that we had similar issues with
pg_upgrade and pg_dump at Greenplum when dealing with schemas containing 100k+
relations, so a general +1 on improving the queries in both.

--
Daniel Gustafsson

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2026-11-27 08:34:44 Re: Skip Var resolution when checking expression type dependencies
Previous Message Jakub Wartak 2026-11-27 08:11:02 Re: enhancing pg_basebackup speeds up to ~23Gbps (small fixes + io_uring/Direct I/O)