Re: postgres import - Mailing list pgsql-general

From Tom Lane
Subject Re: postgres import
Date
Msg-id 12109.1162355039@sss.pgh.pa.us
Whole thread Raw
In response to Re: postgres import  ("Tomi NA" <hefest@gmail.com>)
List 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 by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Limited availability this week
Next
From: "Gregory S. Williamson"
Date:
Subject: Re: [HACKERS] Index greater than 8k