Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Ve51M-0005Hv-5V for pgsql-bugs@arkaria.postgresql.org; Wed, 06 Nov 2013 15:27:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Ve51L-0001lH-DY for pgsql-bugs@arkaria.postgresql.org; Wed, 06 Nov 2013 15:27:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Ve0ZL-0005lq-L5 for pgsql-bugs@postgresql.org; Wed, 06 Nov 2013 10:42:39 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Ve0ZH-0004e4-Ic for pgsql-bugs@postgresql.org; Wed, 06 Nov 2013 10:42:39 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by mahout.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Ve0ZF-0005BX-Vr for pgsql-bugs@postgresql.org; Wed, 06 Nov 2013 10:42:34 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.80) (envelope-from ) id 1Ve0ZA-0006lF-Gz for pgsql-bugs@postgresql.org; Wed, 06 Nov 2013 10:42:28 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: BUG #8580: search_path unexpected behavior with pg_temp To: pgsql-bugs@postgresql.org From: bashtanov@imap.cc Message-Id: Date: Wed, 06 Nov 2013 10:42:28 +0000 X-Pg-Spam-Score: -1.9 (-) 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: 8580 Logged by: Alexey Bashtanov Email address: bashtanov@imap.cc PostgreSQL version: 9.2.4 Operating system: Linux Centos 6.4 Description: [STEPS TO REPRODUCE] CREATE OR REPLACE FUNCTION foo() RETURNS void AS $$ begin create temporary table zoo () on commit preserve rows; delete from zoo; drop table zoo; end; $$ language plpgsql set search_path = pg_catalog, public, pg_temp; begin; select foo(); abort; begin; select foo(); [EXPECTED] no errors [RECEIVED] ERROR: relation "zoo" does not exist LINE 1: delete from zoo [ALSO] 1)reproducibility between 50% and 100% 2)also can be reproduced on pg 9.1.9 3)reproduced if replace delete by perform 4)not reproduced if replace delete by alter Regards, Alexey Bashtanov -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs