Re: note on dropped columns in pg_attribute

From: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: note on dropped columns in pg_attribute
Date: 2003-09-05 22:01:14
Message-ID: 200309051801.14494.xzilla@users.sourceforge.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2003-09-05 22:17:11 Re: IPV4 addresses on IPV6 machines in pg_hba.conf
Previous Message Andreas Pflug 2003-09-05 21:46:04 Re: IPV4 addresses on IPV6 machines in pg_hba.conf