Re: [GENERAL] Temporary tables and miscellaneous schemas

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(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:25:10
Message-ID: 20211.1071984310@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

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*' ...

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Claudio Natoli 2003-12-21 05:25:20 Current Win32 port status
Previous Message Bruce Momjian 2003-12-21 05:25:05 7.4.1 release notes updated

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2003-12-21 05:26:47 Re: [GENERAL] Temporary tables and miscellaneous schemas
Previous Message Bruce Momjian 2003-12-21 05:21:35 Re: [GENERAL] Temporary tables and miscellaneous schemas