pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: bashtanov@imap.cc
To: pgsql-bugs@postgresql.org
Subject: BUG #8580: search_path unexpected behavior with pg_temp
Date: Wed, 06 Nov 2013 10:42:28 +0000
Message-ID: <E1Ve0ZA-0006lF-Gz@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



Message-ID: <E1Ve0ZA-0006lF-Gz@wrigleys.postgresql.org>
Permalink:  ../E1Ve0ZA-0006lF-Gz@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1Ve0ZA-0006lF-Gz@wrigleys.postgresql.org

 · 

reply

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: bashtanov@imap.cc
  Subject: Re: BUG #8580: search_path unexpected behavior with pg_temp
  In-Reply-To: <E1Ve0ZA-0006lF-Gz@wrigleys.postgresql.org>
  References: <E1Ve0ZA-0006lF-Gz@wrigleys.postgresql.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