pg.ddx.io  pgsql-patches@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Joshua D. Drake <jd@commandprompt.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Simon Riggs <simon@2ndquadrant.com>
Cc: pgsql-patches@postgresql.org
Subject: Re: pg_dump additional options for performance
Date: Sun, 27 Jul 2008 22:50:18 -0400
Message-ID: <20080728025018.GK16005@tamriel.snowman.net> (raw)
In-Reply-To: <488D3199.2040902@commandprompt.com>
References: <1216885031.3894.739.camel@ebony.2ndQuadrant>
	<21687.1216886041@sss.pgh.pa.us>
	<1216889809.3894.747.camel@ebony.2ndQuadrant>
	<2818.1217027784@sss.pgh.pa.us>
	<1217063104.3894.1100.camel@ebony.2ndQuadrant>
	<23540.1217089204@sss.pgh.pa.us>
	<20080726164355.GH16005@tamriel.snowman.net>
	<24327.1217094186@sss.pgh.pa.us>
	<20080728004426.GI16005@tamriel.snowman.net>
	<488D3199.2040902@commandprompt.com>

* Joshua D. Drake (jd@commandprompt.com) wrote:
> Custom format rocks for partial set restores from a whole dump. See the  
> TOC option :)

I imagine it does, but that's very rarely what I need.  Most of the time
we're dumping out a schema to load it into a seperate schema (usually on
another host).  Sometimes that can be done by simply vi'ing the file to
change the search_path and whatnot, though more often we end up pipe'ing
the whole thing through sed.  Since we don't allow regular users to do
much, and you have to 'set role postgres;' to do anything as superuser,
we also often end up adding 'set role postgres;' to the top of the .sql
files.

	Thanks,

		Stephen

Attachments:

  signature.asc (application/pgp-signature, 196B) download

view thread (54+ messages)  latest in thread

Message-ID: <20080728025018.GK16005@tamriel.snowman.net>
Permalink:  ../20080728025018.GK16005@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20080728025018.GK16005@tamriel.snowman.net

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-patches@postgresql.org
  Cc: sfrost@snowman.net, jd@commandprompt.com, tgl@sss.pgh.pa.us, simon@2ndquadrant.com
  Subject: Re: pg_dump additional options for performance
  In-Reply-To: <20080728025018.GK16005@tamriel.snowman.net>

* 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