From: Andres Freund <andres@2ndquadrant.com>
To: Gunnlaugur Thor Briem <gunnlaugur@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: pg_dump is O(N) in DB table count N even if dumping only one table
Date: Mon, 10 Jun 2013 16:38:41 +0200
Message-ID: <20130610143841.GC5680@awork2.anarazel.de> (raw)
In-Reply-To: <CAPs+M8L2qA1HjbQqrK7B9wGDdFbwrQPbCOjHKWNdwY5eioVkjQ@mail.gmail.com>
References: <CAPs+M8+oJA+8qQoZ7hmLUzuDTgnOmccqT9SD_=5A-iErnbUP_g@mail.gmail.com>
<20130610140843.GA5680@awork2.anarazel.de>
<CAPs+M8L2qA1HjbQqrK7B9wGDdFbwrQPbCOjHKWNdwY5eioVkjQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Hi,
On 2013-06-10 14:24:14 +0000, Gunnlaugur Thor Briem wrote:
> So I ran this again locally on the production server:
>
> duration: 16012.518 ms statement: SELECT c.tableoid, c.oid, c.relname, ...
> duration: 16516.708 ms statement: SELECT tableoid, oid, typname, ...
> duration: 13400.694 ms statement: SELECT classid, objid, refclassid, ...
>
> Duration decrease is probably *not* significantly due to a warmer cache,
> because I had two runs over the slow network and their durations were
> similar (actually longer the second time).
Hm. 13s for pg_depend locally vs 55s remotely. You need to have a
tremendous amount of dependencies.
Could you do a count(*) of pg_depend, pg_type and pg_class?
Greetings,
Andres Freund
--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
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: andres@2ndquadrant.com, gunnlaugur@gmail.com
Subject: Re: pg_dump is O(N) in DB table count N even if dumping only one table
In-Reply-To: <20130610143841.GC5680@awork2.anarazel.de>
References: <CAPs+M8+oJA+8qQoZ7hmLUzuDTgnOmccqT9SD_=5A-iErnbUP_g@mail.gmail.com> <20130610140843.GA5680@awork2.anarazel.de> <CAPs+M8L2qA1HjbQqrK7B9wGDdFbwrQPbCOjHKWNdwY5eioVkjQ@mail.gmail.com> <20130610143841.GC5680@awork2.anarazel.de>
* 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