Re: [GENERAL] Temporary tables and miscellaneous schemas - Mailing list pgsql-patches

From Tom Lane
Subject Re: [GENERAL] Temporary tables and miscellaneous schemas
Date
Msg-id 18789.1072132914@sss.pgh.pa.us
Whole thread Raw
In response to Re: [GENERAL] Temporary tables and miscellaneous schemas  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: [GENERAL] Temporary tables and miscellaneous schemas  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-patches
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Is current_schemas(true))[1] always the temp schema name?

If you have a temp schema; otherwise it'll be whatever is the front of
your search path.

> That would clean things up nicely.

If you're intent on doing this in \dn, something like

... AND (nspname not like 'pg\\_temp%'
         OR nspname = (current_schemas(true))[1]) ...

would probably work well enough.

            regards, tom lane

pgsql-patches by date:

Previous
From: David Fetter
Date:
Subject: Doc patch--clarifying $1 in PL/PgSQL
Next
From: Tom Lane
Date:
Subject: Re: Doc patch--clarifying $1 in PL/PgSQL