From: | Philip Warner <pjw(at)rhyme(dot)com(dot)au> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Re: COPY BINARY file format proposal |
Date: | 2000-12-07 02:03:33 |
Message-ID: | 3.0.5.32.20001207130333.02d5f480@mail.rhyme.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
At 20:40 6/12/00 -0500, Tom Lane wrote:
>Philip Warner <pjw(at)rhyme(dot)com(dot)au> writes:
>> I'd prefer to see a single magic number for all binary COPY output, then a
>> few bytes of header including a version number, and flags to indicate
>> endianness, OIDs etc. It seems a lot cleaner than overloading the magic
>> number.
>
>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? I hope you're not serious...or
if you are, I'd be interested to know why.
>What might we need in the header besides a version indicator and a
>has-OIDs flag?
Just of the top of my head, some things that could be there in the future:
- floating point representation (for portability)
- flag for compressed or uncompressed toast fields (I assume you dump them
uncompressed?)
- version number may be important if we dump a subset of fields (ie. we'll
need to store the field names somewhere).
I really have no idea what might be there, but it seems prudent to do it
this way.
----------------------------------------------------------------
Philip Warner | __---_____
Albatross Consulting Pty. Ltd. |----/ - \
(A.B.N. 75 008 659 498) | /(@) ______---_
Tel: (+61) 0500 83 82 81 | _________ \
Fax: (+61) 0500 83 82 82 | ___________ |
Http://www.rhyme.com.au | / \|
| --________--
PGP key available upon request, | /
and from pgp5.ai.mit.edu:11371 |/
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2000-12-07 02:12:58 | Re: Re: COPY BINARY file format proposal |
Previous Message | Tom Lane | 2000-12-07 01:40:45 | Re: Re: COPY BINARY file format proposal |