From: Alvaro Herrera <alvherre@commandprompt.com>
To: Abel Abraham Camarillo Ojeda <acamari@verlet.org>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #6205: ERROR: temporary tables cannot specify a schema name
Date: Wed, 14 Sep 2011 18:49:04 -0300
Message-ID: <1316036899-sup-8762@alvh.no-ip.org> (raw)
In-Reply-To: <201109142133.p8ELXXkh073452@wwwmaster.postgresql.org>
References: <201109142133.p8ELXXkh073452@wwwmaster.postgresql.org>
Excerpts from Abel Abraham Camarillo Ojeda's message of mié sep 14 18:33:33 -0300 2011:
> Cannot create temporary tables without using CREATE TEMP,
> if I hardcode 'pg_temp' as a schema _and_ the table uses
> a unique constraint on a column, this does work if the table
> doesn't use a unique constraint:
>
> To reproduce:
>
> $ psql -U postgres _n_srv
> psql (9.1.0)
> Type "help" for help.
>
> _n_srv=# create table pg_temp.c (x int);
> CREATE TABLE
> _n_srv=# drop table pg_temp.c;
> DROP TABLE
> _n_srv=# create table pg_temp.c (x int unique);
> ERROR: temporary tables cannot specify a schema name
FWIW this does work in 9.0.
--
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: alvherre@commandprompt.com, acamari@verlet.org
Subject: Re: BUG #6205: ERROR: temporary tables cannot specify a schema name
In-Reply-To: <1316036899-sup-8762@alvh.no-ip.org>
References: <201109142133.p8ELXXkh073452@wwwmaster.postgresql.org> <1316036899-sup-8762@alvh.no-ip.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox