Re: Usage: pg_dump's text format

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "JP Beaudry" <jbeaudry(at)cisco(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Usage: pg_dump's text format
Date: 2004-04-09 05:39:05
Message-ID: 21447.1081489145@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

"JP Beaudry" <jbeaudry(at)cisco(dot)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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2004-04-10 03:15:35 Re: binary bytea
Previous Message R V Sreedharan 2004-04-09 05:16:30 adopendynamic