Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XAT6M-0004JA-Rw for pgsql-bugs@arkaria.postgresql.org; Fri, 25 Jul 2014 00:11:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XAT6M-0004Lm-6s for pgsql-bugs@arkaria.postgresql.org; Fri, 25 Jul 2014 00:11:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XAT6L-0004Jr-1L for pgsql-bugs@postgresql.org; Fri, 25 Jul 2014 00:11:09 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XAT6F-0006Kz-Nm for pgsql-bugs@postgresql.org; Fri, 25 Jul 2014 00:11:07 +0000 MIME-Version: 1.0 Subject: BUG #11033: 'pg_dump -a' much slower than 'pg_dump' To: pgsql-bugs@postgresql.org From: joe@tanga.com Date: Fri, 25 Jul 2014 00:10:52 +0000 Message-ID: <20140725001052.16600.86470@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs