Re: COPY formatting - Mailing list pgsql-hackers

From Tom Lane
Subject Re: COPY formatting
Date
Msg-id 29626.1079967420@sss.pgh.pa.us
Whole thread Raw
In response to Re: COPY formatting  (Karel Zak <zakkr@zf.jcu.cz>)
List pgsql-hackers
Karel Zak <zakkr@zf.jcu.cz> writes:
> On Fri, Mar 19, 2004 at 09:54:37AM -0500, Tom Lane wrote:
>> Why?  The client-side code doesn't have any real say over the meaning of
>> the data, at least not in psql-class clients.  I suppose a client app
>> that tries to interpret the data could get confused, but psql sure
>> doesn't do that.

>  libpq, fe-protocol2.c, pqGetCopyData2() and pqGetline2() cut string
>  behind '\n'.

Sure, but that doesn't invalidate the data stream as a whole, it's just
a bufferload boundary choice that won't be very helpful for clients not
using a newline-based data layout.  In any case, v2 protocol is
obsolete and needn't limit our thoughts about what to do in future.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Custom format for pg_dumpall
Next
From: "Matthew T. O'Connor"
Date:
Subject: Re: pg_autovacuum next steps