pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christian Ullrich <chris@chrullrich.net>
To: pgsql-admin@postgresql.org
Subject: Re: How to get schema name in which TEMPORARY table is created?
Date: Wed, 09 Mar 2011 10:07:35 +0100
Message-ID: <il7g0n$r4j$1@dough.gmane.org> (raw)
In-Reply-To: <005201cbdd99$8930e990$9b92bcb0$@com>
References: <005201cbdd99$8930e990$9b92bcb0$@com>

* Gnanakumar wrote:

> We're using PostgreSQL v8.2.3.
>
> How do I get the schema name in which TEMPORARY table is created using
> "CREATE TEMP TABLE mytable ...." syntax?

SELECT nspname FROM pg_namespace WHERE oid = pg_my_temp_schema();

I don't have an 8.2.3 lying around, but git says that function is in there.






view thread (6+ messages)

Message-ID: <il7g0n$r4j$1@dough.gmane.org>
Permalink:  ../il7g0n$r4j$1@dough.gmane.org/
Also on:    postgresql.org/message-id/il7g0n$r4j$1@dough.gmane.org

 · 

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: chris@chrullrich.net
  Subject: Re: How to get schema name in which TEMPORARY table is created?
  In-Reply-To: <il7g0n$r4j$1@dough.gmane.org>

* 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