From: Tom Lane <tgl@sss.pgh.pa.us>
To: Gordon Ross <G.Ross@ccw.gov.uk>
Cc: pgsql-sql@postgresql.org
Subject: Re: Determining Inheritance
Date: Wed, 01 Oct 2003 10:26:34 -0400
Message-ID: <28943.1065018394@sss.pgh.pa.us> (raw)
In-Reply-To: <sf7aa3c9.006@groupwise.ccw.gov.uk>
References: <sf7aa3c9.006@groupwise.ccw.gov.uk>
"Gordon Ross" <G.Ross@ccw.gov.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, G.Ross@ccw.gov.uk
Subject: Re: Determining Inheritance
In-Reply-To: <28943.1065018394@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox