Re: How to use pg_restore with *.sql file?

From: Andre Lopes <lopes80andre(at)gmail(dot)com>
To: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
Cc: postgresql Forums <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to use pg_restore with *.sql file?
Date: 2010-09-25 12:32:53
Message-ID: AANLkTi=9WwYLonrZTGaivwJV0AXMjcHD0v79goXdSDo0@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks a lot! It works.

On Sat, Sep 25, 2010 at 1:23 PM, Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>wrote:

> On Sat, Sep 25, 2010 at 6:19 AM, Andre Lopes <lopes80andre(at)gmail(dot)com>
> wrote:
> > Hi,
> >
> > I have generate an *.sql file with the command:
> >
> > [quote]
> > pg_dump -a --inserts databasename > exportfilename.sql
> > [/quote]
> >
> > How can I use the pg_restore to import the data to the database?
>
> Don't.
>
> Just use psql with plain sql dumps:
>
> psql databasename -f exportfilename.sql
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Josh Kupershmidt 2010-09-25 13:39:36 Re: Listen and do something daemon
Previous Message Dmitriy Igrishin 2010-09-25 12:24:23 Re: How to use pg_restore with *.sql file?