Re: [HACKERS] 7.4 COPY BINARY Format Change

2003-08-14 Thread Lee Kindness
I've just sent off patches to pgsql-patches to: 1. Slight clarification to the COPY BINARY format docs 2. A contrib/binarycopy module which wraps-up the detail of creating a file which can be used as input to COPY BINARY. User can create either 7.1 or 7.4 format files using the same API, without

Re: [HACKERS] 7.4 COPY BINARY Format Change

2003-08-04 Thread Tom Lane
Lee Kindness <[EMAIL PROTECTED]> writes: > Would I be right is guessing a binary CURSOR would return in values in > the same format as a binary COPY, hence your expectation of more > individual transfers/conversions? Actually with the new FE/BE protocol > there is little call for the binary cursor

Re: [HACKERS] 7.4 COPY BINARY Format Change

2003-08-04 Thread Lee Kindness
Tom, Tom Lane writes: > Lee Kindness <[EMAIL PROTECTED]> writes: > > However, is COPY BINARY meant/designed to be used as transfer or > > backup mechanism? > > I think you're overlooking a key consideration: COPY BINARY is not > an isolated feature anymore. By design it uses the same data

Re: [HACKERS] 7.4 COPY BINARY Format Change

2003-08-04 Thread Tom Lane
Lee Kindness <[EMAIL PROTECTED]> writes: > However, is COPY BINARY meant/designed to be used as transfer or > backup mechanism? I think you're overlooking a key consideration: COPY BINARY is not an isolated feature anymore. By design it uses the same data representations as are used for binary qu

Re: [HACKERS] 7.4 COPY BINARY Format Change

2003-08-04 Thread Lee Kindness
Tom Lane writes: > Lee Kindness <[EMAIL PROTECTED]> writes: > > Well in that case the docs need attention. They describe the > > "envelope" surrounding the tuples, but no mention is made of the > > format they are in. It is reasonable to assume that this format was > > the native binary format

Re: [HACKERS] 7.4 COPY BINARY Format Change

2003-08-03 Thread Tom Lane
Lee Kindness <[EMAIL PROTECTED]> writes: >>> The real change that occurred here is that the individual data fields >>> go through per-datatype send/receive routines, which in addition to >>> implementing a mostly machine-independent binary format also provide >>> defenses against bad input data. >

Re: [HACKERS] 7.4 COPY BINARY Format Change

2003-08-03 Thread Lee Kindness
Tom, Tom Lane writes: > Lee Kindness <[EMAIL PROTECTED]> writes: > > I've attached a patch which lets COPY read in the 7.1 format. However > > i'm not convinced this is the right way to go - I think the format > > which is output by 7.4 should be identical to the 7.1 format. > > You are gre

Re: [HACKERS] 7.4 COPY BINARY Format Change

2003-08-01 Thread Tom Lane
Lee Kindness <[EMAIL PROTECTED]> writes: > I've attached a patch which lets COPY read in the 7.1 format. However > i'm not convinced this is the right way to go - I think the format > which is output by 7.4 should be identical to the 7.1 format. You are greatly underestimating the changes that occ

[HACKERS] 7.4 COPY BINARY Format Change

2003-08-01 Thread Lee Kindness
Guys, I've been testing 7.4 against an application today. Recompiled everything against the new libraries. However the application includes code which builds up a bulkload file in the documented 7.1 format. The documentation for COPY goes on at length about the format being forward compatible...