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

From Bruce Momjian
Subject Re: [GENERAL] Temporary tables and miscellaneous schemas
Date
Msg-id 200312210526.hBL5QlZ06213@candle.pha.pa.us
Whole thread Raw
In response to Re: [GENERAL] Temporary tables and miscellaneous schemas  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Also, how do we know something is a temp schema?  Just the prefix
> > pg_temp_*?
>
> Yeah.  Remember that all schemas named pg_XXX are reserved for system
> use.  For the moment, testing for pg_temp_XXX is a bulletproof test,
> and we can certainly adapt psql's test if we ever add schemas that might
> conflict.
>
> Looking at the present output of \dn, I wonder whether we should not
> suppress the pg_toast schema as well.  That could be done (at the
> moment) by bouncing all schemas 'pg_t*' ...

Yea, probably.  I think the "implementation artifact" logic is a good
approach.  If someone wants to get into implementation details, they
should query pg_namespace.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: [GENERAL] Temporary tables and miscellaneous schemas
Next
From: Sean Chittenden
Date:
Subject: Re: [GENERAL] Temporary tables and miscellaneous schemas