Re: [Fwd: Re: [pgsql-hackers-win32] Import from Linux to - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: [Fwd: Re: [pgsql-hackers-win32] Import from Linux to
Date
Msg-id 2262.24.211.141.25.1092565126.squirrel@www.dunslane.net
Whole thread Raw
In response to Re: [Fwd: Re: [pgsql-hackers-win32] Import from Linux to  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: [Fwd: Re: [pgsql-hackers-win32] Import from Linux to
List pgsql-hackers
Andrew Dunstan said:
>
>
> Bruce Momjian wrote:
>
>>One issue is that pre-8.0, psql files were opened in Win32 text mode,
>>so we wouldn't have seen this bug on Win32, but we would on Linux.
>>Because we open them on Win32 now in binary mode so we see control-Z it
>>will show up on Win32 too.
>>
>>
>>
>
> true, *BUT*
>
> The patch is not platform-specific. It simply makes psql accept the
> same  line endings on COPY FROM that the backend will accept - in
> effect it  makes it line-end agnostic - this is a Good Thing (tm).
>
> We are still months away from releasing 8.0, so I think doing this for
> tomorrow's 7.4 bundle makes sense.
>

There's another question this bug raises, though. Why doesn't the server
protest when it sees more copy data passed in after it sees the end marker?

cheers

andrew




pgsql-hackers by date:

Previous
From: Gavin Sherry
Date:
Subject: Savepoint weirdness
Next
From: Bruce Momjian
Date:
Subject: Re: 8.0 beta status