pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gnanakumar <gnanam@zoniac.com>
To: jens.wilke@affinitas.de
Cc: pgsql-admin@postgresql.org
Subject: Re: How to get schema name in which TEMPORARY table is created?
Date: Tue, 8 Mar 2011 20:13:43 +0530
Message-ID: <005701cbdd9f$3af822b0$b0e86810$@com> (raw)
In-Reply-To: <005201cbdd99$8930e990$9b92bcb0$@com>
References: <005201cbdd99$8930e990$9b92bcb0$@com>

> 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%';

This will return all the schema name that are available which were created
using TEMP TABLE syntax.  Since our application is web-based, of course,
there will be more than one schema name listed out of this query.  My
question is, how do I get the schema name of the temporary table immediately
after calling "CREATE TEMP TABLE mytable ...." syntax? I need this schema
name for one of my analysis purpose.




view thread (6+ messages)  latest in thread

Message-ID: <005701cbdd9f$3af822b0$b0e86810$@com>
Permalink:  ../005701cbdd9f$3af822b0$b0e86810$@com/
Also on:    postgresql.org/message-id/005701cbdd9f$3af822b0$b0e86810$@com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: gnanam@zoniac.com, jens.wilke@affinitas.de
  Subject: Re: How to get schema name in which TEMPORARY table is created?
  In-Reply-To: <005701cbdd9f$3af822b0$b0e86810$@com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox