Assertion fail with window function and partitioned tables

Jaime Casanova <jcasanov@systemguards.com.ec>

From: Jaime Casanova <jcasanov@systemguards.com.ec>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-01-29T02:45:23Z
Lists: pgsql-hackers

Attachments

Hi,

Just found another crash.

Seems that commit a929e17e5a8c9b751b66002c8a89fdebdacfe194 broke something.
Attached is a minimal case and the stack trace.

--
Jaime Casanova
Director de Servicios Profesionales
SystemGuards - Consultores de PostgreSQL

Commits

  1. Remove [Merge]AppendPath.partitioned_rels.

  2. Remove incidental dependencies on partitioned_rels lists.

  3. Revise make_partition_pruneinfo to not use its partitioned_rels input.

  4. Allow run-time pruning on nested Append/MergeAppend nodes