Skip site navigation (1) Skip section navigation (2)

Re: pg_dump --clean or dropdb?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ray Stell <stellr(at)cns(dot)vt(dot)edu>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: pg_dump --clean or dropdb?
Date: 2008-02-21 19:50:07
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
Ray Stell <stellr(at)cns(dot)vt(dot)edu> writes:
> The doc for pg_dump --clean says it will drop db objects, not the db, 
> however it looks like it does, though the output order of events is
> troubling.  Is there a loop in the create/drop area?.  

"strings" is not the way to find out what will be emitted by pg_restore.
(Hint: there are commands in the dump archive that may or may not be
used by pg_restore.)  Use a plain pg_dump command, or equivalently look
at pg_restore's output script.

			regards, tom lane

In response to

pgsql-admin by date

Next:From: Carol WalterDate: 2008-02-21 21:13:09
Subject: Re: Stable Release?
Previous:From: Ray StellDate: 2008-02-21 18:39:39
Subject: pg_dump --clean or dropdb?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group