From: Tom Lane <tgl@sss.pgh.pa.us>
To: Adam Brusselback <adambrusselback@gmail.com>
Cc: Justin Pryzby <pryzby@telsasoft.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Possible bug: could not open relation with OID [numbers] SQL State: XX000
Date: Wed, 01 Nov 2017 23:12:33 -0400
Message-ID: <21716.1509592353@sss.pgh.pa.us> (raw)
In-Reply-To: <CAMjNa7dbukpQNUcG_z58BBzmhjh816MgRjq0rFttXehxwSYU3Q@mail.gmail.com>
References: <CAMjNa7ckR8BAsW2Lu3VUSzTqY5SH0dprZU5=NH_nsHaJ_ynJ-g@mail.gmail.com>
<20171101220354.GB22239@telsasoft.com>
<CAMjNa7dkMbYVF0JPMMQ7WpT=4mFTBaJwwt5nSP0BCBb9bbwDTg@mail.gmail.com>
<CAMjNa7eLii9EcuPERJoGGvUw7q+MDHd9B4SCNpXkf14662e+Tw@mail.gmail.com>
<13901.1509586595@sss.pgh.pa.us>
<CAMjNa7dbukpQNUcG_z58BBzmhjh816MgRjq0rFttXehxwSYU3Q@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>
Adam Brusselback <adambrusselback@gmail.com> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, adambrusselback@gmail.com, pryzby@telsasoft.com
Subject: Re: Possible bug: could not open relation with OID [numbers] SQL State: XX000
In-Reply-To: <21716.1509592353@sss.pgh.pa.us>
References: <CAMjNa7ckR8BAsW2Lu3VUSzTqY5SH0dprZU5=NH_nsHaJ_ynJ-g@mail.gmail.com> <20171101220354.GB22239@telsasoft.com> <CAMjNa7dkMbYVF0JPMMQ7WpT=4mFTBaJwwt5nSP0BCBb9bbwDTg@mail.gmail.com> <CAMjNa7eLii9EcuPERJoGGvUw7q+MDHd9B4SCNpXkf14662e+Tw@mail.gmail.com> <13901.1509586595@sss.pgh.pa.us> <CAMjNa7dbukpQNUcG_z58BBzmhjh816MgRjq0rFttXehxwSYU3Q@mail.gmail.com> <21716.1509592353@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox