Re: Re: COPY BINARY file format proposal

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Re: COPY BINARY file format proposal
Date: 2000-12-07 02:12:58
Message-ID: 20814.976155178@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Philip Warner <pjw(at)rhyme(dot)com(dot)au> writes:
>> OK, we can do it that way. I'm still going to pick a magic number that
>> looks different depending on endianness, however ;-).

> What does the smiley mean in this context?

Just thinking that the only way an endianness flag inside the header
would be useful is if we pick a magic number that's a bytewise
palindrome.

> - floating point representation (for portability)

Specified how? (For that matter, determined how?)

> - flag for compressed or uncompressed toast fields (I assume you dump them
> uncompressed?)

Yes, I want COPY to force 'em to uncompressed so as to avoid problems
with cross-version changes of compression algorithm. (Right at the
moment it gets that wrong.)

> - version number may be important if we dump a subset of fields (ie. we'll
> need to store the field names somewhere).

No we don't. ASCII COPY format doesn't store field names either ... at
least not as part of the data stream ... and should not IMHO. Don't you
want to be able to reload into a table that you've changed the column
names of?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Philip Warner 2000-12-07 02:34:03 Re: Re: COPY BINARY file format proposal
Previous Message Philip Warner 2000-12-07 02:03:33 Re: Re: COPY BINARY file format proposal