Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 3A01165089E for ; Sun, 20 Jul 2008 00:13:45 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 56863-07-2 for ; Sun, 20 Jul 2008 00:13:08 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tamriel.snowman.net (tamriel.snowman.net [72.66.115.51]) by postgresql.org (Postfix) with ESMTP id 224306508CA for ; Sun, 20 Jul 2008 00:07:51 -0300 (ADT) Received: by tamriel.snowman.net (Postfix, from userid 1000) id E4956840C6; Sat, 19 Jul 2008 23:07:49 -0400 (EDT) Date: Sat, 19 Jul 2008 23:07:49 -0400 From: Stephen Frost To: Simon Riggs Cc: pgsql-patches@postgresql.org Subject: pg_dump additional options for performance Message-ID: <20080720030749.GA18846@tamriel.snowman.net> Mail-Followup-To: Simon Riggs , pgsql-patches@postgresql.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k+w/mQv8wyuph6w0" Content-Disposition: inline X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/2.6.25-2-amd64 (x86_64) X-Uptime: 22:47:33 up 6 days, 2:01, 17 users, load average: 1.33, 1.28, 0.85 User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200807/184 X-Sequence-Number: 6878 --k+w/mQv8wyuph6w0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Simon, I agree with adding these options in general, since I find myself frustrated by having to vi huge dumps to change simple schema things. A couple of comments on the patch though: - Conflicting option handling I think we are doing our users a disservice by putting it on them to figure out exactly what: multiple object groups cannot be used together means to them. You and I may understand what an "object group" is, and why there can be only one, but it's a great deal less clear than the prior message of options -s/--schema-only and -a/--data-only cannot be used together My suggestion would be to either list out the specific options which can't be used together, as was done previously, or add a bit of (I realize, boring) code and actually tell the user which of the conflicting options were used. - Documentation When writing the documentation I would stress that "pre-schema" and "post-schema" be defined in terms of PostgreSQL objects and why they are pre vs. post. - Technically, the patch needs to be updated slightly since another pg_dump-related patch was committed recently which also added options and thus causes a conflict. Beyond those minor points, the patch looks good to me. Thanks, Stephen --k+w/mQv8wyuph6w0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkiCrAUACgkQrzgMPqB3kih3rwCeOqBtCUUM3iIwmtpY9IYb2dcT SJIAmwfTsBM8P8fvGRbSKOOYEqPe90NJ =MKZP -----END PGP SIGNATURE----- --k+w/mQv8wyuph6w0--