pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@2ndquadrant.com>
To: Bruce Momjian <bruce@momjian.us>
Cc: joe@tanga.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #11033: 'pg_dump -a' much slower than 'pg_dump'
Date: Sat, 11 Oct 2014 23:47:14 +0200
Message-ID: <20141011214714.GH18020@awork2.anarazel.de> (raw)
In-Reply-To: <20141011212659.GK21267@momjian.us>
References: <20140725001052.16600.86470@wrigleys.postgresql.org>
	<20141011212659.GK21267@momjian.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 2014-10-11 17:26:59 -0400, Bruce Momjian wrote:
> On Fri, Jul 25, 2014 at 12:10:52AM +0000, joe@tanga.com wrote:
> > The following bug has been logged on the website:
> > 
> > Bug reference:      11033
> > Logged by:          Joe Van Dyk
> > Email address:      joe@tanga.com
> > PostgreSQL version: 9.3.5
> > Operating system:   Ubuntu 12.04
> > Description:        
> > 
> > I've got a small database that takes about 0.8 seconds to dump with
> > 'pg_dump' and about 11 seconds to dump with 'pg_dump -a'.
> > 
> > I've narrowed it down to the foreign key constraints in the database, if
> > those are removed, then 'pg_dump -a' becomes fast again.
> > 
> > I can't come up with an artificial test case. I can reproduce it using our
> > company's db schema. I don't want to publicly post that schema to the
> > mailing list, but I'd be happy to send the schema that shows the problem to
> > someone privately.
> > 
> > I can reproduce the problem in 9.3.4 and 9.4.beta1.
> 
> Wow, that is certainly odd.

There've been a couple cases of that where the dependency resolution
gets more complex for data only dumps because of the added dependencies
that try to get the order right to not violate foreign keys. IIRC Tom
fixed a couple performance problems recently.
Yep, 51fc6133488a80a1310972b8a0ad20aca13f5b02.

Joe, can you check with some more recent version? Unfortunately that fix
got committed after 9.3.5. 9.4 beta3 should be fine.

Andres

-- 
 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



view thread (8+ messages)  latest in thread

Message-ID: <20141011214714.GH18020@awork2.anarazel.de>
Permalink:  ../20141011214714.GH18020@awork2.anarazel.de/
Also on:    postgresql.org/message-id/20141011214714.GH18020@awork2.anarazel.de

 · 

reply

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, bruce@momjian.us, joe@tanga.com
  Subject: Re: BUG #11033: 'pg_dump -a' much slower than 'pg_dump'
  In-Reply-To: <20141011214714.GH18020@awork2.anarazel.de>
  References: <20140725001052.16600.86470@wrigleys.postgresql.org> <20141011212659.GK21267@momjian.us> <20141011214714.GH18020@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