How to use pg_restore with *.sql file?

Поиск
Список
Период
Сортировка
От Andre Lopes
Тема How to use pg_restore with *.sql file?
Дата
Msg-id AANLkTinTS=733gz2Unr-NYyfQqEqdzESPO5xyVgMRf2W@mail.gmail.com
обсуждение исходный текст
Ответы Re: How to use pg_restore with *.sql file?  (Scott Marlowe <scott.marlowe@gmail.com>)
Re: How to use pg_restore with *.sql file?  (Dmitriy Igrishin <dmitigr@gmail.com>)
Список pgsql-general
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?

I have tried:

[quote]
pg_restore -d databasename exportfilename.sql
[/quote]

But without success...

What is the best way to import the *.sql file to the database?


Best Regards,

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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Index on points
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: How to use pg_restore with *.sql file?