Re: RFC: Restructuring pg_aggregate

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: RFC: Restructuring pg_aggregate
Date: 2002-04-10 16:59:26
Message-ID: 200204101659.g3AGxQi23993@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hiroshi Inoue wrote:
> Tom Lane wrote:
>
> > Hiroshi's "DROP_COLUMN_HACK" was essentially along this line, but
> > I think he made a representational mistake by trying to change the
> > attnums of dropped columns to be negative values.
>
> Negative attnums had 2 advantages then. It had a big
> advantage that initdb isn't needed. Note that it was
> only a trial hack and there was no consensus on the way.
> It was very easy to change the implementation to use
> attisdropped. OTOH physical/logical attnums approach
> needed the change on pg_class, pg_attribute and so
> I've never had a chance to open the patch to public.
> It was also more sensitive about oversights of needed
> changes than the attisdropped flag approach.
>
> > That means that
> > a lot of low-level places *do* need to know about the dropped-column
> > convention, else they can't make any sense of tuple layouts.
>
> Why ? As you already mentioned, there were not that many places
> to be changed.
>
> Well what's changed since then ?

Here is an old email from me that outlines the idea of having a
physical/logical attribute numbering system, and the advantages. For
implementation, I thought we could do most of the work by filtering what
the client saw, and let the server just worry about physical numbering,
except for 'SELECT *' expansion.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

Attachment Content-Type Size
unknown_filename text/plain 0 bytes

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-04-10 17:04:12 Re: A "New Release" list of places to contact about new releases
Previous Message Justin Clift 2002-04-10 16:55:34 Re: [HACKERS] [Fwd: AW: More UB-Tree patent information]