Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1acxQQ-00078j-Vm for pgsql-bugs@arkaria.postgresql.org; Mon, 07 Mar 2016 15:50:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1acxQQ-0007Z0-20 for pgsql-bugs@arkaria.postgresql.org; Mon, 07 Mar 2016 15:50:26 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1acxQP-0007Yt-I4 for pgsql-bugs@postgresql.org; Mon, 07 Mar 2016 15:50:25 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1acxQM-0006MC-Dv for pgsql-bugs@postgresql.org; Mon, 07 Mar 2016 15:50:24 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u27FoLcp021084; Mon, 7 Mar 2016 10:50:21 -0500 From: Tom Lane To: g.jalmi@tcs.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14003: Error "could not open relation with OID 18152875" In-reply-to: <20160307125737.25731.19550@wrigleys.postgresql.org> References: <20160307125737.25731.19550@wrigleys.postgresql.org> Comments: In-reply-to g.jalmi@tcs.com message dated "Mon, 07 Mar 2016 12:57:37 +0000" Date: Mon, 07 Mar 2016 10:50:21 -0500 Message-ID: <21083.1457365821@sss.pgh.pa.us> 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 g.jalmi@tcs.com writes: > PostgreSQL version: 9.1.14 > Scenario: A temporary table is created within a function where no schema > name is specefied for the table. This table is created using dynamic sql. > close the cursor > return all records from temporary table and then drop the temorary > table. It's hard to be sure since you didn't provide a concrete test case, but this sounds very much like a bug that was fixed last September (in 9.1.19 and its sibling releases); see http://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=dae1c9480 If updating to 9.1.19 or 9.1.20 doesn't fix it, please provide an exact script to reproduce the problem. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs