Re: note on dropped columns in pg_attribute - Mailing list pgsql-patches

From Robert Treat
Subject Re: note on dropped columns in pg_attribute
Date
Msg-id 200309051801.14494.xzilla@users.sourceforge.net
Whole thread Raw
In response to Re: note on dropped columns in pg_attribute  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-patches
On Friday 05 September 2003 16:24, Peter Eisentraut wrote:
> Robert Treat writes:
> > I didn't see it documented anywhere that a 0 in attypid of pg_attribute,
> > and given the note on the need to match pg_type lest failure seems to
> > warrant the mention.
>
> A column is dropped if and only if attisdropped is true.

Right. I didn't mean to imply otherwise.  That first line should have read  "I
didn't see it documented anywhere that a 0 in attypid of pg_attribute is OK
with dropped columns".  My only point was that in the notes it says that
attypid is the OID in pg_type, and that information in that table must match
information in this table else PostgreSQL will fail.  However that's not
neccessarily true for dropped columns where there is no match cause attypid
will be 0.  Are there other cases where it can be set to 0?

Robert Treat
--
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL

pgsql-patches by date:

Previous
From: Andreas Pflug
Date:
Subject: Re: IPV4 addresses on IPV6 machines in pg_hba.conf
Next
From: Tom Lane
Date:
Subject: Re: IPV4 addresses on IPV6 machines in pg_hba.conf