Re: Usage: pg_dump's text format - Mailing list pgsql-novice

From Tom Lane
Subject Re: Usage: pg_dump's text format
Date
Msg-id 21447.1081489145@sss.pgh.pa.us
Whole thread Raw
In response to Usage: pg_dump's text format  ("JP Beaudry" <jbeaudry@cisco.com>)
List pgsql-novice
"JP Beaudry" <jbeaudry@cisco.com> writes:
> In long, I use the following command to generate the dump file against a
> database named "mystore":
> "pg_dump --clean --create --file=db_dump.txt --format p mystore"
> ...
> To restore the database, I have tried:
> "psql mystore < db_dump.txt"
> And this fails at the "Drop Database "mystore"" command.

--clean and --create are logically incompatible options.  pg_dump
versions newer than about 7.1 will tell you so ... I think you are
overdue for an upgrade, but in the meantime don't use that combination.

            regards, tom lane

pgsql-novice by date:

Previous
From: "JP Beaudry"
Date:
Subject: Usage: pg_dump's text format
Next
From: "Manfred Koroschetz"
Date:
Subject: Re: Help for MSSQL "Compute" equivalent in Postgres