Skip site navigation (1) Skip section navigation (2)

Re: [GENERAL] Temporary tables and miscellaneous schemas

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
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 15:47:42
Message-ID: 3FE8639E.8020908@familyhealth.com.au (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
>   	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.

Chris

In response to

Responses

pgsql-hackers by date

Next:From: Christopher Kings-LynneDate: 2003-12-23 15:49:17
Subject: Re: Quoting of psql \d output
Previous:From: Bruce MomjianDate: 2003-12-23 15:00:42
Subject: Re: Quoting of psql \d output

pgsql-patches by date

Next:From: Christopher Kings-LynneDate: 2003-12-23 15:49:17
Subject: Re: Quoting of psql \d output
Previous:From: Bruce MomjianDate: 2003-12-23 15:00:42
Subject: Re: Quoting of psql \d output

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group