Re: Crash in add_paths_to_append_rel - Mailing list pgsql-hackers

From Richard Guo
Subject Re: Crash in add_paths_to_append_rel
Date
Msg-id CAMbWs48ay4k5t3PtDd-sJbrin3hZOakfBfWY36GnkKm3pbHkdA@mail.gmail.com
Whole thread Raw
In response to Re: Crash in add_paths_to_append_rel  (David Rowley <dgrowleyml@gmail.com>)
List pgsql-hackers

On Tue, Oct 10, 2023 at 11:52 AM David Rowley <dgrowleyml@gmail.com> wrote:
On Mon, 9 Oct 2023 at 22:49, Richard Guo <guofenglinux@gmail.com> wrote:
> I came across a crash in add_paths_to_append_rel() with the query below.

> It was introduced by commit a8a968a8 where we referenced
> cheapest_startup_path->param_info without first checking that we have a
> valid cheapest_startup_path.

I pushed this with just minor adjustments to the comments you wrote. I
didn't feel the need to reiterate on the set_cheapest() comments.

Thanks for pushing!

Thanks
Richard

pgsql-hackers by date:

Previous
From: Richard Guo
Date:
Subject: Re: Crash in add_paths_to_append_rel
Next
From: Peter Eisentraut
Date:
Subject: Re: Add const to values and nulls arguments