Re: Determining Inheritance

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Gordon Ross" <G(dot)Ross(at)ccw(dot)gov(dot)uk>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Determining Inheritance
Date: 2003-10-01 14:26:34
Message-ID: 28943.1065018394@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Gordon Ross" <G(dot)Ross(at)ccw(dot)gov(dot)uk> writes:
> Is there any way to determine which table a row belows to, if I do a
> search on the top level table:

Look at the built-in column "tableoid". You can join this to
pg_class.oid to retrieve the table name.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message OpenGis 2003-10-01 15:24:13 Link Oracle tables in Postgre
Previous Message Peter Eisentraut 2003-10-01 12:21:22 Re: Creating Index