Re: BUG #19438: segfault with temp_file_limit inside cursor - Mailing list pgsql-bugs

From David Rowley
Subject Re: BUG #19438: segfault with temp_file_limit inside cursor
Date
Msg-id CAApHDvpZOCWwSNuBZ4Xg-EcbQ9Bxbk+58AsuE1FCbV5=wyXiqw@mail.gmail.com
Whole thread
In response to Re: BUG #19438: segfault with temp_file_limit inside cursor  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: BUG #19438: segfault with temp_file_limit inside cursor
List pgsql-bugs
On Mon, 30 Mar 2026 at 12:51, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> David Rowley <dgrowleyml@gmail.com> writes:
> > I don't know if that means
> > it's worth deviating from the similar WARNINGs you've added and making
> > that one an ERROR. There's certainly no guarantee with the other
> > context that we'll not crash sometime very soon after issuing the
> > warning anyway, so maybe it's fine.
>
> Seems like a reasonable answer.  What do you think of making the
> double-free cases ERRORs across the board?  If we don't error out,
> there will likely be cascading problems in all the mcxt types not
> just this one.

I think it's a good idea. It might slightly increase the chances that
we get a report about an issue. I suppose the logic in deciding which
elevel to make it could be applied about equally to the sentinel byte
check as well. Maybe that should also be an error for the same reason.

David



pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #19438: segfault with temp_file_limit inside cursor
Next
From: Tom Lane
Date:
Subject: Re: BUG #19438: segfault with temp_file_limit inside cursor