Re: How to get schema name in which TEMPORARY table is created? - Mailing list pgsql-admin

From Jens Wilke
Subject Re: How to get schema name in which TEMPORARY table is created?
Date
Msg-id 201103081518.34461.jens.wilke@affinitas.de
Whole thread Raw
In response to How to get schema name in which TEMPORARY table is created?  ("Gnanakumar" <gnanam@zoniac.com>)
List pgsql-admin
On Tuesday 08 March 2011 15:02:57 Gnanakumar wrote:

Hi,

> How do I get the schema name in which TEMPORARY table is created using
> "CREATE TEMP TABLE mytable ...." syntax?

select n.nspname from pg_class c join pg_namespace n on n.oid=c.relnamespace
where c.relname ='foo' and n.nspname like 'pg_temp%';

Regards Jens

pgsql-admin by date:

Previous
From: "Gnanakumar"
Date:
Subject: How to get schema name in which TEMPORARY table is created?
Next
From: "Gnanakumar"
Date:
Subject: Re: How to get schema name in which TEMPORARY table is created?