Re: pg_dump, pg_restore - Mailing list pgsql-general

From Pandurangan R S
Subject Re: pg_dump, pg_restore
Date
Msg-id 5e744e3d0602052148t2859f700y2d0f668cd35c957c@mail.gmail.com
Whole thread Raw
In response to pg_dump, pg_restore  ("surabhi.ahuja" <surabhi.ahuja@iiitb.ac.in>)
List pgsql-general
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@iiitb.ac.in> 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

pgsql-general by date:

Previous
From: Pandurangan R S
Date:
Subject: Re: accidentally deleted rows
Next
From: "Javier Carlos"
Date:
Subject: Re: pg_dump, pg_restore