From: | "Jocelyn Turcotte" <turcotte(dot)j(at)gmail(dot)com> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | BUG #1692: Drop table in plpgsql |
Date: | 2005-05-31 18:58:50 |
Message-ID: | 20050531185850.C9618F0AC7@svr2.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
The following bug has been logged online:
Bug reference: 1692
Logged by: Jocelyn Turcotte
Email address: turcotte(dot)j(at)gmail(dot)com
PostgreSQL version: 8.0.3
Operating system: Debian linux 1:3.3.5-12
Description: Drop table in plpgsql
Details:
I dont know if this bug is known (it seems to be a bug though), did not find
the todo list on the site.
If I execute the folowing code I get the error:
ERROR: relation with OID 3374698 does not exist
CONTEXT: SQL statement "INSERT INTO tmp values (1)"
PL/pgSQL function "bugtest" line 8 at SQL statement
Code:
CREATE OR REPLACE FUNCTION bugtest() returns integer as $proc$
DECLARE
yo record;
BEGIN
CREATE TEMP TABLE tmp (
col INTEGER
) ON COMMIT DROP;
INSERT INTO tmp values (1);
select into yo col from tmp;
DROP TABLE tmp;
RETURN 0;
END;
$proc$ language plpgsql;
select bugtest();
select bugtest();
From | Date | Subject | |
---|---|---|---|
Next Message | magawake | 2005-05-31 20:51:55 | BUG #1693: tsearch2 won't compile |
Previous Message | Tom Lane | 2005-05-31 17:22:25 | Re: BUG #1686: Regular expression problem |