Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 76CAAB5DC1E for ; Wed, 14 Sep 2011 18:49:16 -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 18680-08 for ; Wed, 14 Sep 2011 21:49:10 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from lists.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 36663B5DBE0 for ; Wed, 14 Sep 2011 18:49:10 -0300 (ADT) Received: from perhan.alvh.no-ip.org (spinlock.commandprompt.com.commandprompt.com [207.173.203.215]) by lists.commandprompt.com (Postfix) with ESMTPA id 423FF348065; Wed, 14 Sep 2011 14:49:07 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([200.126.65.205] helo=perhan.alvh.no-ip.org) by assp.commandprompt.com with ESMTP (2.0.1); 14 Sep 2011 14:49:05 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 61AC66E84B; Wed, 14 Sep 2011 18:49:04 -0300 (CLST) Content-Type: text/plain; charset=UTF-8 Cc: Pg Bugs Subject: Re: BUG #6205: ERROR: temporary tables cannot specify a schema name From: Alvaro Herrera To: Abel Abraham Camarillo Ojeda In-reply-to: <201109142133.p8ELXXkh073452@wwwmaster.postgresql.org> References: <201109142133.p8ELXXkh073452@wwwmaster.postgresql.org> Date: Wed, 14 Sep 2011 18:49:04 -0300 Message-Id: <1316036899-sup-8762@alvh.no-ip.org> User-Agent: Sup/git Content-Transfer-Encoding: 8bit X-Assp-Version: 2.0.1(3.2.15) on assp.commandprompt.com X-Assp-Client-TLS: yes X-Assp-ID: assp.commandprompt.com m1-36947-00492 X-Assp-Original-Subject: Re: [BUGS] BUG #6205: ERROR: temporary tables cannot specify a schema name X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201109/78 X-Sequence-Number: 31095 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 The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support