From: Tom Lane <tgl@sss.pgh.pa.us>
To: depesz@depesz.com
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: Can we get rid of repeated queries from pg_dump?
Date: Mon, 30 Aug 2021 10:58:07 -0400
Message-ID: <1351364.1630335487@sss.pgh.pa.us> (raw)
In-Reply-To: <20210830144551.GA27054@depesz.com>
References: <20210826084430.GA26282@depesz.com>
<648517.1629986527@sss.pgh.pa.us>
<20210826140827.GA15868@depesz.com>
<649446.1629987629@sss.pgh.pa.us>
<20210826160644.GA3120@depesz.com>
<e6a7503afd115d111fbb96c5787906d73cfe2605.camel@cybertec.at>
<896732.1630099403@sss.pgh.pa.us>
<20210830074442.GB15241@depesz.com>
<1349119.1630332682@sss.pgh.pa.us>
<20210830144551.GA27054@depesz.com>
hubert depesz lubaczewski <depesz@depesz.com> writes:
> On Mon, Aug 30, 2021 at 10:11:22AM -0400, Tom Lane wrote:
>> I speculate that it is collecting and then not printing the info
>> about functions that are in extensions --- can you check on
>> how many there are of those?
> classid │ count
> ─────────────────────────┼───────
> pg_type │ 31
> pg_proc │ 1729
> pg_class │ 61
> pg_foreign_data_wrapper │ 1
> pg_cast │ 30
> pg_language │ 1
> pg_opclass │ 73
> pg_operator │ 111
> pg_opfamily │ 73
> (9 rows)
Ah-hah. Those 1729 extension-owned functions account nicely
for the extra probes into pg_proc, and I bet they are causing
the unexplained getFormattedTypeName calls too. So the
*real* problem here seems to be that we're doing too much
work on objects that are not going to be dumped because they
are extension members. I'll take a look at that later if
nobody beats me to it.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, depesz@depesz.com, laurenz.albe@cybertec.at, pgsql-general@lists.postgresql.org
Subject: Re: Can we get rid of repeated queries from pg_dump?
In-Reply-To: <1351364.1630335487@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox