Re: [GENERAL] Temporary tables and miscellaneous schemas

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>, Sean Chittenden <sean(at)chittenden(dot)org>, btober(at)seaworthysys(dot)com
Subject: Re: [GENERAL] Temporary tables and miscellaneous schemas
Date: 2003-12-21 05:26:47
Message-ID: 200312210526.hBL5QlZ06213@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Sean Chittenden 2003-12-21 06:00:11 Re: [GENERAL] Temporary tables and miscellaneous schemas
Previous Message Claudio Natoli 2003-12-21 05:25:20 Current Win32 port status

Browse pgsql-patches by date

  From Date Subject
Next Message Sean Chittenden 2003-12-21 06:00:11 Re: [GENERAL] Temporary tables and miscellaneous schemas
Previous Message Tom Lane 2003-12-21 05:25:10 Re: [GENERAL] Temporary tables and miscellaneous schemas