Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id B1AD41927160 for ; Tue, 26 Jun 2012 12:39:37 -0300 (ADT) Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SjXra-0006FA-M4 for pgsql-bugs@postgresql.org; Tue, 26 Jun 2012 15:39:36 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SjXrN-0000DD-J9 for pgsql-bugs@postgresql.org; Tue, 26 Jun 2012 15:39:21 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1SjXrM-000119-Vk for pgsql-bugs@postgresql.org; Tue, 26 Jun 2012 15:39:21 +0000 Date: Tue, 26 Jun 2012 15:39:20 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6707: ERROR: could not open relation with OID To: pgsql-bugs@postgresql.org From: lifeair@gmail.com X-Pg-Spam-Score: -1.0 (-) X-Archive-Number: 201206/216 X-Sequence-Number: 33443 The following bug has been logged on the website: Bug reference: 6707 Logged by: LiFeAiR Email address: lifeair@gmail.com PostgreSQL version: 9.1.4 Operating system: FREE BSD Description: = CREATE OR REPLACE FUNCTION test() RETURNS integer AS $BODY$ DECLARE _r RECORD; BEGIN CREATE TEMP TABLE test(id int); _r :=3D ROW(NULL)::test; _r:=3DNULL; DROP TABLE test CASCADE; RETURN 1; END; $BODY$ LANGUAGE plpgsql VOLATILE COST 100; select test();