Re: [HACKERS] compression in LO and other fields

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: wieck(at)debis(dot)com (Jan Wieck)
Cc: scrappy(at)hub(dot)org (The Hermit Hacker), zakkr(at)zf(dot)jcu(dot)cz, t-ishii(at)sra(dot)co(dot)jp, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] compression in LO and other fields
Date: 1999-11-13 03:45:57
Message-ID: 28577.942464757@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

wieck(at)debis(dot)com (Jan Wieck) writes:
> The idea was to use another bit in the tuple header to tell
> if an existing heap tuple's data is compressed or not. So the
> heap fetching allways looks at the bit in the tuple header,
> and the heap appending looks at the flag in the relation
> pointer. That's exactly what you want, no?

Right. Compressed tuples must be unambiguously marked as such on-disk.
Whether to compress a tuple when writing it out is a decision that
can be made on-the-fly, using strategies that could change from time
to time, without invalidating the data that's already out there or
affecting the tuple-reading code.

If we choose to provide also a way of compressing individual fields
rather than whole tuples, it would be good to provide the same
flexibility at the field level. Some tuples might contain the field
in compressed form, some in uncompressed form. The reading logic
should not need to be aware of the way that the writing logic chooses
which to do.

regards, tom lane

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 1999-11-13 04:10:02 Re: [HACKERS] RFC: create/alter user extension
Previous Message Jan Wieck 1999-11-13 02:51:48 Re: [HACKERS] compression in LO and other fields