Search Postgresql Archives

Re: pg_dump, pg_restore

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

 



Did you check if your pg_restore was successful?

I think you need to include the following option while using pg_dump &
pg_restore

 -C, --create             include/issue commands to create database


On 2/6/06, surabhi.ahuja <surabhi.ahuja@xxxxxxxxxxx> wrote:
>  i am trying to do :
>
> pg_dump -f op.tar -F t database_name
>
> then i do
>
> dropdb database_name
>
> and then i do pg_restore op.tar
>
> and when i do psql database_name
>
> it says database does not exist.
>
> where am i going wrong?
>
> thanks,
> regards
> Surabhi


[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 Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux