Re: BUG #17355: Server crashes on ExecReScanForeignScan in postgres_fdw when accessing foreign partition

Alexander Law <exclusion@gmail.com>

From: Alexander Lakhin <exclusion@gmail.com>
To: Etsuro Fujita <etsuro.fujita@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Date: 2022-02-01T18:00:02Z
Lists: pgsql-bugs
01.02.2022 11:59, Etsuro Fujita wrote:
> Attached is an updated patch.  I tweaked a comment a little bit and
> added the commit message.  I didn’t include your test because in my
> understanding we don’t add such a test into the postgres_fdw
> regression test.  I’ll commit the patch if there are no objections
> from you (or anyone else).
Thank you! I have no objections.
That test was not intended for committing, I just wanted to show how
I've tested the fix.

Best regards,
Alexander



Commits

  1. Further fix for EvalPlanQual with mix of local and foreign partitions.

  2. Fix segfault during EvalPlanQual with mix of local and foreign partitions.

  3. Rework planning and execution of UPDATE and DELETE.