X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 42759D1B52B for ; Wed, 1 Oct 2003 14:27:55 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 46307-04 for ; Wed, 1 Oct 2003 11:27:13 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 3941FD1B54C for ; Wed, 1 Oct 2003 11:27:09 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h91EQY6c028944; Wed, 1 Oct 2003 10:26:35 -0400 (EDT) To: "Gordon Ross" Cc: pgsql-sql@postgresql.org Subject: Re: Determining Inheritance In-reply-to: References: Comments: In-reply-to "Gordon Ross" message dated "Wed, 01 Oct 2003 10:51:59 +0100" Date: Wed, 01 Oct 2003 10:26:34 -0400 Message-ID: <28943.1065018394@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/9 X-Sequence-Number: 15409 "Gordon Ross" 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