citus/src
manaldush f0789bd388
Fix memory corruptions that could happen when a Citus downgrade is followed by an upgrade (#7950)
DESCRIPTION: Fixes potential memory corruptions that could happen when a
Citus downgrade is followed by a Citus upgrade.

In case of citus downgrade and further upgrade citus crash with core
dump.
The reason is that citus hardcoded number of columns in
pg_dist_partition table,
but in case of downgrade and following update table can have more
columns, and
some of then can be marked as dropped.

Patch suggest decision for this problem with using
tupleDescriptor->nattrs(postgres internal approach).

Fixes #7933.

---------

Co-authored-by: Onur Tirtir <onurcantirtir@gmail.com>
2025-08-05 10:03:35 +00:00
..
backend Fix memory corruptions that could happen when a Citus downgrade is followed by an upgrade (#7950) 2025-08-05 10:03:35 +00:00
include Fix memory corruptions that could happen when a Citus downgrade is followed by an upgrade (#7950) 2025-08-05 10:03:35 +00:00
test EXPLAIN ANALYZE - Prevent execution of the plan during the plan-print (#8017) 2025-07-30 11:29:50 -07:00