Re: Re: [GENERAL] PRIMARY KEY & INHERITANCE (fwd) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Re: [GENERAL] PRIMARY KEY & INHERITANCE (fwd)
Date
Msg-id 22965.964066969@sss.pgh.pa.us
Whole thread Raw
In response to Re: Re: [GENERAL] PRIMARY KEY & INHERITANCE (fwd)  (Chris Bitmead <chrisb@nimrod.itg.telstra.com.au>)
List pgsql-hackers
Chris Bitmead <chrisb@nimrod.itg.telstra.com.au> writes:
> ... The attnum and the name should
> probably be individual to each class in the hierarchy. (The name should
> be individual to support subclass renaming to avoid naming conflicts,
> like in the draft SQL3 and Eiffel). If it is in two parts then using the
> oid of the common part would make it easy for your purposes.

This bothers me.  Seems like you are saying that a subclass's column
might not match the parent's by *either* name or column position, but
nonetheless the system will know that this subclass column is the same
as that parent column.  No doubt we could implement that by relying on
OIDs of pg_attribute rows, but just because it's implementable doesn't
make it a good idea.  I submit that this is too confusing to be of
any practical use.  There should be a *user-visible* connection between
parent and child column, not some magic under-the-hood connection.
IMHO it ought to be the column name.

            regards, tom lane

pgsql-hackers by date:

Previous
From: Larry Rosenman
Date:
Subject: mac.c
Next
From: Tom Lane
Date:
Subject: Re: About these IPC parameters