Re: Re : Win32 binaries test / pg_dump problem - Mailing list pgsql-hackers-win32

From Cyril VELTER
Subject Re: Re : Win32 binaries test / pg_dump problem
Date
Msg-id 0b1201c4449d$2ff66e50$dc01a8c0@lodgis.net
Whole thread Raw
In response to Re : Win32 binaries test / pg_dump problem  ("Cyril VELTER" <cyril.velter@metadys.com>)
Responses Re: Re : Win32 binaries test / pg_dump problem
List pgsql-hackers-win32
From: "Andrew Dunstan" <andrew@dunslane.net>

> Cyril VELTER wrote:
>
> >     if you psql -f test.sql basetest from the windows shell to a windows
or
> > linux database, you'll get a missing data error :
> >
> > psql:test.sql:9: ERROR:  missing data for column "b"
> > CONTEXT:  COPY test, line 1: "a"
> >
> >     if you psql -f test.sql basetest from a linux shell to a windows or
> > linux database, you won't get an error
>
> Sounds like we should have psql open the file in binary mode on Windows.
> Would that cause problems? I doubt it, but I wonder.
>

    you might be right, I just found some information on msdn that fseek for
example is influenced by ctrl-z when the file is opened in text mode.

    I'm not sure that this is the cause of the second problem (backend crash
on copy to) though.

    do you known where this modification needs to be done ?

    cyril


pgsql-hackers-win32 by date:

Previous
From: "Magnus Hagander"
Date:
Subject: Re: win32 service code
Next
From: "Andrew Dunstan"
Date:
Subject: Re: Re : Win32 binaries test / pg_dump problem