Re: Segment fault when excuting SPI function On PG with commit 41c6a5be

Zhihong Yu <zyu@yugabyte.com>

From: Zhihong Yu <zyu@yugabyte.com>
To: Greg Nancarrow <gregn4422@gmail.com>
Cc: "liuhuailing@fujitsu.com" <liuhuailing@fujitsu.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2021-07-30T12:12:53Z
Lists: pgsql-hackers
On Fri, Jul 30, 2021 at 3:30 AM Greg Nancarrow <gregn4422@gmail.com> wrote:

> On Fri, Jul 30, 2021 at 6:57 PM liuhuailing@fujitsu.com
> <liuhuailing@fujitsu.com> wrote:
> >
> > When I used SPI_execute_plan function on PG12 which commit 41c6a5be is
> used,
> > Segment fault occurred.
>
> I'm not seeing any such commit.
> Can you provide a link to the commit in GitHub?
>
> Regards,
> Greg Nancarrow
> Fujitsu Australia
>
>
> Hi,
I think Huailing was referring to:

commit 41c6a5bec25e720d98bd60d77dd5c2939189ed3c
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date:   Fri May 21 14:03:53 2021 -0400

    Restore the portal-level snapshot after procedure COMMIT/ROLLBACK.

Cheers

Commits

  1. Use elog, not Assert, to report failure to provide an outer snapshot.

  2. Restore the portal-level snapshot after procedure COMMIT/ROLLBACK.