Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id D51E6B5DC2B for ; Wed, 14 Sep 2011 18:33:34 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 00349-03 for ; Wed, 14 Sep 2011 21:33:34 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 2382CB5D91F for ; Wed, 14 Sep 2011 18:33:33 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p8ELXXdJ073453 for ; Wed, 14 Sep 2011 21:33:33 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p8ELXXkh073452; Wed, 14 Sep 2011 21:33:33 GMT (envelope-from www) Date: Wed, 14 Sep 2011 21:33:33 GMT Message-Id: <201109142133.p8ELXXkh073452@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6205: ERROR: temporary tables cannot specify a schema name From: "Abel Abraham Camarillo Ojeda" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201109/77 X-Sequence-Number: 31094 The following bug has been logged online: Bug reference: 6205 Logged by: Abel Abraham Camarillo Ojeda Email address: acamari@verlet.org PostgreSQL version: 9.1.0 Operating system: OpenBSD-current/amd64 Description: ERROR: temporary tables cannot specify a schema name Details: 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