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

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: How to use pg_restore with *.sql file?
Дата
Msg-id AANLkTi=AqmWrUR4f8+EfCHzP+QrL1=unRLZp_jX7SoqF@mail.gmail.com
обсуждение исходный текст
Ответ на How to use pg_restore with *.sql file?  (Andre Lopes <lopes80andre@gmail.com>)
Ответы Re: How to use pg_restore with *.sql file?  (Andre Lopes <lopes80andre@gmail.com>)
Список pgsql-general
On Sat, Sep 25, 2010 at 6:19 AM, Andre Lopes <lopes80andre@gmail.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

В списке pgsql-general по дате отправления:

Предыдущее
От: Andre Lopes
Дата:
Сообщение: How to use pg_restore with *.sql file?
Следующее
От: Dmitriy Igrishin
Дата:
Сообщение: Re: How to use pg_restore with *.sql file?