pgsql: Ensure interleaved_parts field is always initialized - Mailing list pgsql-committers

From David Rowley
Subject pgsql: Ensure interleaved_parts field is always initialized
Date
Msg-id E1mW80U-00028V-L7@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Ensure interleaved_parts field is always initialized

This field was recently added in db632fbca, however that commit missed one
place where it should have initialized the new field to NULL.  The missed
location is where the PartitionBoundInfo is created for partition-wise
join relations.  Technically there could be interleaved partitions in a
partition-wise join relation, but currently the only optimization we use
this field for only does so for base rels and other member rels.  So just
document that we don't populate this field for join rels.

Reported-by: Amit Langote
Author: Amit Langote, David Rowley
Reviewed-by: Amit Langote, David Rowley
Discussion: https://postgr.es/m/CA+HiwqE76Rps24kwHsd2Cr82Ua07tJC9t9reG0c7ScX9n_xrEA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/16239c5fdf6e457f8274c49209d1fbdeab472703

Modified Files
--------------
src/backend/partitioning/partbounds.c | 3 +++
src/include/partitioning/partbounds.h | 4 +++-
2 files changed, 6 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Remove gratuitous environment dependency in 002_types.pl test.
Next
From: Amit Kapila
Date:
Subject: pgsql: Doc: Move pg_stat_replication_slots view to "Collected Statistic