pg.ddx.io  pgsql-patches@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stephen Frost <sfrost@snowman.net>
Cc: daveg <daveg@sonic.net>
Cc: Simon Riggs <simon@2ndquadrant.com>
Cc: pgsql-patches@postgresql.org
Subject: Re: pg_dump additional options for performance
Date: Mon, 21 Jul 2008 19:19:46 -0400
Message-ID: <19095.1216682386@sss.pgh.pa.us> (raw)
In-Reply-To: <20080721210057.GH18846@tamriel.snowman.net>
References: <1216529229.19656.835.camel@ebony.2ndQuadrant>
	<1216535862.19656.845.camel@ebony.2ndQuadrant>
	<20080720214335.GB18846@tamriel.snowman.net>
	<1216591180.19656.848.camel@ebony.2ndQuadrant>
	<20080721011829.GC18846@tamriel.snowman.net>
	<20080721014942.GC30869@sonic.net>
	<20080721015850.GD18846@tamriel.snowman.net>
	<18415.1216611275@sss.pgh.pa.us>
	<20080721115416.GF18846@tamriel.snowman.net>
	<17578.1216672737@sss.pgh.pa.us>
	<20080721210057.GH18846@tamriel.snowman.net>

Stephen Frost <sfrost@snowman.net> writes:
> Are there use cases for just --omit-post-load or --omit-pre-load?

Probably not many.  The thing that's bothering me is the
action-at-a-distance property of the positive-logic switches.
How are we going to explain this?

	"By default, --schema-pre-load, --data-only, --schema-post-load
	are all ON.  But if you turn one of them ON (never mind that
	it was already ON by default), that changes the defaults for
	the other two to OFF.  Then you have to turn them ON (never
	mind that the default for them is ON) if you want two out of
	the three categories."

You have to bend your mind into a pretzel to wrap it around this
behavior.  Yeah, it might be convenient once you understand it,
but how long will it take for the savings in typing to repay the
time to understand it and the mistakes along the way?

			regards, tom lane



view thread (54+ messages)  latest in thread

Message-ID: <19095.1216682386@sss.pgh.pa.us>
Permalink:  ../19095.1216682386@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19095.1216682386@sss.pgh.pa.us

 · 

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-patches@postgresql.org
  Cc: tgl@sss.pgh.pa.us, sfrost@snowman.net, daveg@sonic.net, simon@2ndquadrant.com
  Subject: Re: pg_dump additional options for performance
  In-Reply-To: <19095.1216682386@sss.pgh.pa.us>
  References: <1216529229.19656.835.camel@ebony.2ndQuadrant> <1216535862.19656.845.camel@ebony.2ndQuadrant> <20080720214335.GB18846@tamriel.snowman.net> <1216591180.19656.848.camel@ebony.2ndQuadrant> <20080721011829.GC18846@tamriel.snowman.net> <20080721014942.GC30869@sonic.net> <20080721015850.GD18846@tamriel.snowman.net> <18415.1216611275@sss.pgh.pa.us> <20080721115416.GF18846@tamriel.snowman.net> <17578.1216672737@sss.pgh.pa.us> <20080721210057.GH18846@tamriel.snowman.net> <19095.1216682386@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