Re: hash join error improvement (old) - Mailing list pgsql-hackers

From Thomas Munro
Subject Re: hash join error improvement (old)
Date
Msg-id CA+hUKG+Pews_43h76VvZsXZx4KjKHcwxS9c=kkXJWn2-9Q4oLQ@mail.gmail.com
Whole thread Raw
In response to Re: hash join error improvement (old)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Wed, May 27, 2020 at 1:30 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> > There are more uses of BufFileRead that don't bother to distinguish
> > these two cases apart, though -- logtape.c, tuplestore.c,
> > gistbuildbuffers.c all do the same.
>
> Yeah.  I rather suspect that callers of BufFileRead/Write are mostly
> expecting that those functions will throw an ereport() for any interesting
> error condition.  Maybe we should make it so, instead of piecemeal fixing
> the callers?

Yeah.  I proposed that over here:

https://www.postgresql.org/message-id/CA+hUKGK0w+GTs8aDvsKDVu7cFzSE5q+0NP_9kPSxg2NA1NeZew@mail.gmail.com

But I got stuck trying to figure out whether to back-patch (arguably
yes: there are bugs here, but arguably no: the interfaces change).



pgsql-hackers by date:

Previous
From: Kyotaro Horiguchi
Date:
Subject: Re: max_slot_wal_keep_size comment in postgresql.conf
Next
From: Tom Lane
Date:
Subject: Re: some grammar refactoring