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