Re: How to identify the class of a record - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: How to identify the class of a record
Date
Msg-id Pine.LNX.4.30.0101031701500.1310-100000@peter.localdomain
Whole thread Raw
In response to How to identify the class of a record  (Andre Fortin <andrefor@axionet.com>)
List pgsql-general
Andre Fortin writes:

>     SELECT * from Equipment*;
>
> Is there a way to know from which table each row in the returned record
> set belongs to, as you can do with OO languages.

In 7.1 there will be an implicit column TABLEOID.  In 7.0 and earlier
there's no good way short of maintaining such a column manually.

--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


pgsql-general by date:

Previous
From: "Herve Piedvache"
Date:
Subject: Pb importing data in v. 7.0.3
Next
From: Tim Uckun
Date:
Subject: Re: Re: RE: Re: MySQL and PostgreSQL speed compare