Search Postgresql Archives

Re: pg_dump'ed file contains "DROP DATABASE"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



pf@xxxxxxxxxxx writes:
> The other day, I restored his first file with:
>   pg_restore --host "localhost" --port "5432" --username "postgres"
>   --no-password --dbname "myname" --create --clean --verbose "dumpfile"

> Was my 134 table[1] myname DB saved because it was open?

Yup.

> If the dump file
> contains the above statements, how can I be absolutely certain I won't
> lose the DB?

Reading the manual is advisable.  --create --clean specifies exactly
that the target database is to be dropped and recreated.

			regards, tom lane





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux