Re: postgres import
| От | Tom Lane |
|---|---|
| Тема | Re: postgres import |
| Дата | |
| Msg-id | 12109.1162355039@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: postgres import ("Tomi NA" <hefest@gmail.com>) |
| Список | pgsql-general |
"Tomi NA" <hefest@gmail.com> writes:
> 2006/10/31, Albe Laurenz <all@adv.magwien.gv.at>:
>> psql -h host -p port -d database -U user <dump.sql
> It's a good enough solution in most cases, but when the rowcount
> starts to skyrocket, it simply doesn't seem to cut it (at least I
> couldn't make it to).
It certainly should work. We've seen some platforms where libreadline
seems to be unable to tell the difference between input from a terminal
and input from a file, and performs a boatload of processing that would
be useful for interactive input but is just overhead here. If that's
your problem, try this form instead:
psql -h host -p port -d database -U user -f dump.sql
regards, tom lane
В списке pgsql-general по дате отправления: