Re: inheritance/oid questions

From: Chris <chris(at)bitmead(dot)com>
To: Alex Pilosov <alex(at)pilosoft(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: inheritance/oid questions
Date: 2000-10-08 10:54:21
Message-ID: 39E0525D.701A5EC@bitmead.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

In the up and coming version of postgres there will be a special column
called "tableoid" which gives the oid from pg_class of the table it came
from. If you are not using the current CVS sources, you will have to
keep a column updated yourself.

Alex Pilosov wrote:
>
> Suppose I have table a and b (b inherits a).
>
> Then I do select * from a*;
>
> Now, I'd like to know which table this particular row came from (a or b).
> Is this possible? Or do I have to have a column where I'd store what kind
> of object this is?
>
> -alex

--
Chris Bitmead
mailto:chris(at)bitmead(dot)com
http://www.techphoto.org - Photography News, Stuff that Matters

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Chris 2000-10-08 10:56:40 Re: inheritance question 2/ref integrity
Previous Message Alfred Perlstein 2000-10-08 10:48:34 Still crashing with latest 7.0.2 (Re: (forw) more crashes)