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 04:40:59 |
Message-ID: | 200312210440.hBL4exk22043@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:
> > This patch uses current_schemas('true') to display only the schemas in
> > the current search path and implicit schemas.
>
> The more I look at this, the sillier it looks. It converts \dn into
> an expensive substitute for "select current_schemas(true)". In
> practical situations this will mean that \dn shows hardly anything of
> interest.
>
> I think the original complaint was misguided and we should not do
> anything about it. IIRC the complaint amounted to "I have hundreds of
> schemas and it annoys me that \dn shows them all". How is this
> different from putting hundreds of tables into one schema and then being
> annoyed because \dt shows them all? We have other mechanisms available
> for making \dn selective (ie, you can use a name pattern). If \dn is
> restricted to showing only schemas in your search path, it will become
> useless.
Agreed showing just search path and implicit schemas is pretty dumb. I
think the issue was that every backend with a temp table was showing up,
pretty much swamping the actual schemas he is using. The original
approach was to supress all temp schemas _except_ the ones already
visible, but was a hack using backend id. The patch could easily be
modified to use current_schemas to restrict temp table display if people
think it is a good idea.
--
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
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-12-21 04:43:10 | Re: [GENERAL] Temporary tables and miscellaneous schemas |
Previous Message | Tom Lane | 2003-12-21 04:37:10 | Re: [GENERAL] Temporary tables and miscellaneous schemas |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-12-21 04:43:10 | Re: [GENERAL] Temporary tables and miscellaneous schemas |
Previous Message | Tom Lane | 2003-12-21 04:37:10 | Re: [GENERAL] Temporary tables and miscellaneous schemas |