Re: psql reading from stdin - Mailing list pgsql-hackers-win32

From Andrew Dunstan
Subject Re: psql reading from stdin
Date
Msg-id 4120CBD7.10307@dunslane.net
Whole thread Raw
In response to psql reading from stdin  ("Eric Rosenquist" <rosenquist@mail.utexas.edu>)
List pgsql-hackers-win32

Eric Rosenquist wrote:

>Hi
>
>I was trying to populate the database in Windows by doing psql -f dumpfile.
>It creates the tables just fine and executes the SET commands in the file,
>but it ignores all the data given as COPY xxxx (xxx,xxx,xxx) FROM stdin;
>commands.
>
>\i dumpfile at the psql prompt also doesn't work.
>
>To work around this, the dump file can be generated with pg_dump -D, meaning
>store the data as INSERT commands rather than COPY.  But something is
>apparently wrong with the stdin of psql in Windows.
>
>
>
>

This is probably the problem that we patched a couple of days ago.
Please see if converting the dump file to have unix line endings (NL
instead of CRNL) makes any difference. Alternatively, if you can compile
yourself, try with cvs tip.

cheers

andrew

pgsql-hackers-win32 by date:

Previous
From: "Rodrigo Moreno"
Date:
Subject: RES: REPOST: InitDB Failure on install
Next
From: "Magnus Hagander"
Date:
Subject: Re: [pgsql-www] Win32 PostgreSQL 8.0 Beta 1 Installer available