Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eA5yH-0002oI-Hk for pgsql-general@arkaria.postgresql.org; Thu, 02 Nov 2017 03:15:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eA5yG-0005JV-UP for pgsql-general@arkaria.postgresql.org; Thu, 02 Nov 2017 03:15:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eA5vr-0007VO-0C for pgsql-general@postgresql.org; Thu, 02 Nov 2017 03:12:39 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eA5vn-0003bj-Qf for pgsql-general@postgresql.org; Thu, 02 Nov 2017 03:12:38 +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 vA23CXWS021717; Wed, 1 Nov 2017 23:12:33 -0400 From: Tom Lane To: Adam Brusselback cc: Justin Pryzby , pgsql-general@postgresql.org Subject: Re: Possible bug: could not open relation with OID [numbers] SQL State: XX000 In-reply-to: References: <20171101220354.GB22239@telsasoft.com> <13901.1509586595@sss.pgh.pa.us> Comments: In-reply-to Adam Brusselback message dated "Wed, 01 Nov 2017 22:36:29 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <21715.1509592353.1@sss.pgh.pa.us> Date: Wed, 01 Nov 2017 23:12:33 -0400 Message-ID: <21716.1509592353@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org Adam Brusselback writes: > Huh, so in the other cases where the function works fine, it's likely that > the data all just fits within the regular table and doesn't have to be > TOAST'ed? If that's the correct theory, yes. Did you match up the OID yet? > So this is something that isn't changed in PG10, and I could have > encountered in 9.6, and just by chance didn't? You could have encountered it anytime since TOAST was invented, or at least since RETURN QUERY was invented (the latter is newer IIRC). The fact that the bug has been there so long and has only been reported a couple of times is the main reason why I'm loath to take a brute force duplicate-the-data approach to fixing it. Such a fix would penalize many more people than it would help. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general