Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id C1E69C83A17 for ; Mon, 2 Jul 2012 00:00:11 -0300 (ADT) Received: from zql.com ([206.222.31.58]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SlWrt-0007Of-M9 for pgsql-bugs@postgresql.org; Mon, 02 Jul 2012 03:00:11 +0000 Received: from localhost.localdomain ([127.0.0.1] helo=localhost) by zql.com with smtp (Exim 4.68) (envelope-from ) id 1SlWrf-0007Eo-91; Sun, 01 Jul 2012 22:59:51 -0400 From: "Greg Sabino Mullane" To: pgsql-bugs@postgresql.org Subject: Re: BUG #6707: ERROR: could not open relation with OID X-PGP-Key: 2529 DF6A B8F7 9407 E944 45B4 BC9B 9067 1496 4AC8 X-Request-PGP: http://www.biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8 In-Reply-To: <20285.1340769074@sss.pgh.pa.us> Date: Mon, 2 Jul 2012 02:59:51 -0000 X-Mailer: JoyMail 2.4.0 Message-ID: X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201207/1 X-Sequence-Number: 33477 -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 Hmm. The problem with this is that the DROP TABLE invalidates test's rowtype, so on a second call the already-compiled "ROW(NULL)::test" expression refers to a type that no longer exists. > We could fix that by adding datatypes to the set of objects that are > tracked to determine when a cached plan must be invalidated, but I'm > more than a bit hesitant to expend the extra cycles for this, given > the lack of previous complaints and the large number of datatypes > that are mentioned in most plans. re previous complaints: I've run across this in the past but just chalked it up to a "guess Postgres doesn't like it done that way". I suspect there may be others in the same boat? > Perhaps it would be good enough to only track types that must be > rowtypes (ie, are mentioned in RowExpr or ConvertRowtypeExpr)? +1 - -- Greg Sabino Mullane greg@turnstep.com PGP Key: 0x14964AC8 201207012259 http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8 -----BEGIN PGP SIGNATURE----- iEYEAREDAAYFAk/xDoYACgkQvJuQZxSWSsiFJwCfQBqt/SUkFHeA8FP+mq3nKtW6 GFwAnjx7WVlCCws7XdsQYDOVYzzpC8iW =q158 -----END PGP SIGNATURE-----