From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stefan Seifert <nine@detonation.org>
Cc: Andres Freund <andres@anarazel.de>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: pg_upgrade slowness for databases with many tables
Date: Sun, 24 May 2015 11:02:54 -0400
Message-ID: <26756.1432479774@sss.pgh.pa.us> (raw)
In-Reply-To: <15572721.6C7KJ65xZS@sphinx>
References: <3559239.xQRrTQ2jGQ@sphinx>
<1780127.t6Hj91Z03N@sphinx>
<20150522220844.GM2028@alap3.anarazel.de>
<15572721.6C7KJ65xZS@sphinx>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Stefan Seifert <nine@detonation.org> writes:
> It looks like LockReassignCurrentOwner is taking most of the time.
Yeah, so that is the issue that was alleviated by the patch you were
pointed to.
> What I really wonder though is, why pg_dump does all these queries for single
> objects in the first place? If the target is to create a complete schema dump,
> why not doing a select * from all the relevant pg_* tables and construct the
> big picture in memory? That surely would be much faster?
It's unclear that it would be faster, and it is clear that restructuring
pg_dump like that would be a lotta work.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, nine@detonation.org, andres@anarazel.de
Subject: Re: pg_upgrade slowness for databases with many tables
In-Reply-To: <26756.1432479774@sss.pgh.pa.us>
References: <3559239.xQRrTQ2jGQ@sphinx> <1780127.t6Hj91Z03N@sphinx> <20150522220844.GM2028@alap3.anarazel.de> <15572721.6C7KJ65xZS@sphinx> <26756.1432479774@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