Re: Re: COPY BINARY file format proposal

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-08 05:46:59
Message-ID: 3.0.5.32.20001208164659.02b3e740@mail.rhyme.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

At 14:28 7/12/00 -0500, Tom Lane wrote:
>
>Next 4 bytes: version number, currently 1 (expressed in source machine's
>endianness

I don't want to continue being picky, but you could just use 4 bytes for a
maj-min-rev-patch version number (in that order), and avoid the endian
issues by reading and writing each byte. No big deal, though.

>This allows for both backwards-compatible header additions (extend the
>header without changing the version number) and non-backwards-compatible
>changes (bump the version number).

That's where the rev & patch levels help if you adopt the above version
numbering - 1.0-** should should all be compatibile, 1.1 should be able to
read <= 1.1-**, 1.0-** should not be expected to read 1.1-** etc.

>
>Comments?
>

Sounds reasonable even without the above suggestions.

----------------------------------------------------------------
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 |/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2000-12-08 05:55:21 Re: v7.1 beta 1 ...packaged, finally ...
Previous Message Dan Moschuk 2000-12-08 04:40:33 Re: Re: Sorry