Re: in query variables.... - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: in query variables....
Date
Msg-id 20080717204849.GO3934@alvh.no-ip.org
Whole thread Raw
In response to in query variables....  ("Rhys A.D. Stewart" <rhys.stewart@gmail.com>)
List pgsql-general
Rhys A.D. Stewart escribió:

> Is there a way to get the name of the relation or relations in a query
> from within the query?  Like some kind of magic variable...?
> for example :
>               "select *, <some_magic_variable> from thistable"
> where <some_magic_variable> would be replaced by thistable.

select *, tableoid::regclass from thistable

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-general by date:

Previous
From: "Ismael ...."
Date:
Subject: Re: in query variables....
Next
From: mikesdenning@gmail.com
Date:
Subject: autovacuum logging 8.1