Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WOzmm-000173-0n for pgsql-bugs@arkaria.postgresql.org; Sun, 16 Mar 2014 01:22:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WOzml-0005ER-C5 for pgsql-bugs@arkaria.postgresql.org; Sun, 16 Mar 2014 01:22:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WOrnm-00089E-Pg for pgsql-bugs@postgresql.org; Sat, 15 Mar 2014 16:51:14 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WOrnc-0006UP-M1 for pgsql-bugs@postgresql.org; Sat, 15 Mar 2014 16:51:12 +0000 MIME-Version: 1.0 Subject: BUG #9578: Undocumented behaviour for temp tables created inside query language (SQL) functions To: pgsql-bugs@postgresql.org From: jack@douglastechnology.co.uk Date: Sat, 15 Mar 2014 16:50:11 +0000 Message-ID: <20140315165011.20722.74795@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 9578 Logged by: Jack Douglas Email address: jack@douglastechnology.co.uk PostgreSQL version: 9.3.2 Operating system: Debian Wheezy 64-bit Description: A temp table created inside an SQL function does not override existing permanent tables with the same name as the documentation here indicates it should: http://www.postgresql.org/docs/9.3/static/sql-createtable.html#AEN72676 I've reproduced this on the major versions back to 8.4. More details, test case and investigation here: http://dba.stackexchange.com/q/60997/1396 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs