From: | Greg Stark <gsstark(at)mit(dot)edu> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Greg Stark <gsstark(at)mit(dot)edu>, Martijn van Oosterhout <kleptog(at)svana(dot)org>, Thomas Hallgren <thomas(at)tada(dot)se>, Psql_General <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [GENERAL] UUID's as primary keys |
Date: | 2006-06-29 06:40:15 |
Message-ID: | 87y7vgtqgg.fsf@stark.xeocode.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
> Greg Stark <gsstark(at)mit(dot)edu> writes:
> > Hm, so it could be stored on disk without the length header as long as
> > the length header is added to the in-memory representation? I don't
> > think the type system has hooks for reading and storing data to disk
> > though.
>
> No, it doesn't, and we'd pay a nonzero price for allowing that.
> Currently the executor doesn't have to care (much) about whether a
> tuple is on-disk or in-memory --- the individual datums look the same
> either way. Allowing them to be different would force a lot of
> format conversion steps that currently need not happen.
Is there ever a case where an entire tuple is passed around without knowing
the typmod of an attribute in the tuple?
The conversion would only really have to happen when the attribute is fetched
or stored, not when the tuple is being passed around wholesale. But I have a
feeling that would be more intrusive than just making the entire system typmod
aware.
--
greg
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Hallgren | 2006-06-29 07:02:38 | Re: Fixed length datatypes. WAS [GENERAL] UUID's as |
Previous Message | J. Andrew Rogers | 2006-06-29 06:21:08 | Re: Fixed length datatypes. |
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Hallgren | 2006-06-29 07:02:38 | Re: Fixed length datatypes. WAS [GENERAL] UUID's as |
Previous Message | J. Andrew Rogers | 2006-06-29 06:21:08 | Re: Fixed length datatypes. |