Re: Can we get rid of repeated queries from pg_dump?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Cc: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, depesz(at)depesz(dot)com, pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Can we get rid of repeated queries from pg_dump?
Date: 2021-08-27 22:51:02
Message-ID: 901655.1630104662@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> writes:
> On 8/27/21 2:23 PM, Tom Lane wrote:
>> Those queries are coming from getFormattedTypeName(), which is used
>> for function arguments and the like. I'm not quite sure why Hubert
>> is seeing 5000 such calls in a database with only ~100 functions;
>> surely they don't all have an average of 50 arguments?

> Could be.

Maybe. I'm disturbed by the discrepancy between my result (about
10% of pg_dump's queries are these) and Hubert's (over 50% are).
I'd like to know the reason for that before we push forward.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Gilar Ginanjar 2021-08-28 00:31:42 Re: Unexpected block ID found when reading data
Previous Message ourdiaspora 2021-08-27 22:50:31 Re: use fopen unknown resource

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephen Frost 2021-08-27 23:24:55 Re: automatic analyze: readahead - add "IO read time" log message
Previous Message Mark Dilger 2021-08-27 22:47:53 Re: Delegating superuser tasks to new security roles (Was: Granting control of SUSET gucs to non-superusers)