Received: from meryl.it.uu.se (root@meryl.it.uu.se [130.238.12.42]) by hub.org (8.9.3/8.9.3) with ESMTP id GAA24334 for ; Tue, 30 May 2000 06:41:30 -0400 (EDT) (envelope-from e99re41@DoCS.UU.SE) Received: from Leopard.DoCS.UU.SE (e99re41@Leopard.DoCS.UU.SE [130.238.9.163]) by meryl.it.uu.se (8.8.5/8.8.5) with ESMTP id MAA09393; Tue, 30 May 2000 12:41:25 +0200 (MET DST) Received: from localhost (e99re41@localhost) by Leopard.DoCS.UU.SE (8.6.12/8.6.12) with ESMTP id MAA10459; Tue, 30 May 2000 12:41:24 +0200 X-Authentication-Warning: Leopard.DoCS.UU.SE: e99re41 owned process doing -bs Date: Tue, 30 May 2000 12:41:23 +0200 (MET DST) From: Peter Eisentraut Reply-To: Peter Eisentraut To: Christophe Labouisse cc: pgsql-sql@postgreSQL.org Subject: Re: Inheritance In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by hub.org id GAA24434 X-Archive-Number: 200005/191 On 30 May 2000, Christophe Labouisse wrote: > I have a table (A) with a few "sibbling" tables (B and C for You probably mean "child" tables. > instance). When I make the following query : select id from A* where > [condition] pgsql returns ids taken from A, B or C (which is what I > want). Is there a way to know to what table the id actually belong ? No. We're kind of pondering a way to solve this. However, according to the SQL99 data model, the row is shared between A and B or C respectively, so when you select from a* then you get rows from "a", period. I know this doesn't help in practice, though. -- Peter Eisentraut Sernanders väg 10:115 peter_e@gmx.net 75262 Uppsala http://yi.org/peter-e/ Sweden