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 200312231601.hBNG1Pw12537@candle.pha.pa.us
Whole thread Raw
In response to Re: [GENERAL] Temporary tables and miscellaneous schemas  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Responses Re: [GENERAL] Temporary tables and miscellaneous schemas
List 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@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: Christopher Kings-Lynne
Date:
Subject: Re: Quoting of psql \d output
Next
From: Bruce Momjian
Date:
Subject: Re: Quoting of psql \d output