pg.ddx.io pgsql-general@postgresql.org mailing list archivehelp / color / mirror / Atom feed
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:45:55 -0400
Message-ID: <23105.1509594355@sss.pgh.pa.us> (raw)
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>
I wrote:
> 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.
Just thinking idly about what a not-so-brute-force fix might look like
... I wonder if we could postpone the actual drop of toast tables to
end of transaction? I'm not sure how messy that would be, or if it
would have negative consequences elsewhere. But it might be an idea.
We already postpone removal of the underlying disk files till end
of transaction, since we don't know if a DROP TABLE will get rolled
back. The idea here would be to postpone deletion of the system
catalog entries for the toast table as well.
I'm not likely to work on this idea myself in the near future,
but if anyone else is feeling motivated to attack the problem,
have at it ...
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
view thread (10+ messages) latest in thread
Message-ID: <23105.1509594355@sss.pgh.pa.us> Permalink: ../23105.1509594355@sss.pgh.pa.us/ Also on: postgresql.org/message-id/23105.1509594355@sss.pgh.pa.us ·
reply
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: <23105.1509594355@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> <23105.1509594355@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