Re: [GENERAL] Temporary tables and miscellaneous schemas

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Sean Chittenden <sean(at)chittenden(dot)org>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>, btober(at)seaworthysys(dot)com
Subject: Re: [GENERAL] Temporary tables and miscellaneous schemas
Date: 2003-12-23 16:01:25
Message-ID: 200312231601.hBNG1Pw12537@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Christopher Kings-Lynne wrote:
> > initPQExpBuffer(&buf);
> > printfPQExpBuffer(&buf,
> > ! "SELECT n.nspname AS \"%s\",\n"
> > ! " u.usename AS \"%s\"\n"
> > "FROM pg_catalog.pg_namespace n LEFT JOIN pg_catalog.pg_user u\n"
> > ! " ON n.nspowner=u.usesysid\n"
> > ! "WHERE n.nspname NOT LIKE 'pg_temp_%%' OR\n"
> > ! " n.nspname = (current_schemas(true))[1]\n", /* temp schema is first */
> > _("Name"),
> > _("Owner"));
> > ! processNamePattern(&buf, pattern, true, false,
> > NULL, "n.nspname", NULL,
> > NULL);
>
> Not that this is incorrect. You need to go:
>
> LIKE 'pg\\\\_temp\\\\_%' probably.

Got it.

--
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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-12-23 16:02:12 Re: Quoting of psql \d output
Previous Message Christopher Kings-Lynne 2003-12-23 15:53:03 Re: Permissions and PGSQL

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2003-12-23 16:02:12 Re: Quoting of psql \d output
Previous Message Christopher Kings-Lynne 2003-12-23 15:49:17 Re: Quoting of psql \d output