pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Moench-Tegeder <cmt@burggraben.net>
To: Mike Martin <redtux1@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Return value of CREATE TABLE
Date: Thu, 10 Sep 2020 14:16:52 +0200
Message-ID: <20200910121652.GA25488@elch.exwg.net> (raw)
In-Reply-To: <CAOwYNKbLaHe=aeDbzs90ePu1a9ChXtz9yiZyHQ29-_EYu0jB-Q@mail.gmail.com>
References: <CAOwYNKbLaHe=aeDbzs90ePu1a9ChXtz9yiZyHQ29-_EYu0jB-Q@mail.gmail.com>

## Mike Martin (redtux1@gmail.com):

> So basically I would like to be able to know what namespace a temp table is
> created in, so that I can constrain lookup.

pg_my_temp_schema() returns the OID of the session's temporary schema
("or 0 if none", according to the docs).

Regards,
Christoph

-- 
Spare Space





view thread (3+ messages)  latest in thread

Message-ID: <20200910121652.GA25488@elch.exwg.net>
Permalink:  ../20200910121652.GA25488@elch.exwg.net/
Also on:    postgresql.org/message-id/20200910121652.GA25488@elch.exwg.net

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: cmt@burggraben.net, redtux1@gmail.com
  Subject: Re: Return value of CREATE TABLE
  In-Reply-To: <20200910121652.GA25488@elch.exwg.net>
  References: <CAOwYNKbLaHe=aeDbzs90ePu1a9ChXtz9yiZyHQ29-_EYu0jB-Q@mail.gmail.com> <20200910121652.GA25488@elch.exwg.net>

* 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