Ensure interleaved_parts field is always initialized
authorDavid Rowley <drowley@postgresql.org>
Fri, 1 Oct 2021 02:09:49 +0000 (15:09 +1300)
committerDavid Rowley <drowley@postgresql.org>
Fri, 1 Oct 2021 02:09:49 +0000 (15:09 +1300)
commit16239c5fdf6e457f8274c49209d1fbdeab472703
tree654d438c5a186b9c9cfb8483b1e700cc73334b07
parent20f8671ef69b864c25ffa59471814102c1260d78
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
src/backend/partitioning/partbounds.c
src/include/partitioning/partbounds.h