]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix missing initialization in pg_restore_extended_stats()
authorMichael Paquier <michael@paquier.xyz>
Mon, 26 Jan 2026 07:13:41 +0000 (16:13 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 26 Jan 2026 07:13:41 +0000 (16:13 +0900)
commit114e84c532d1493bbabcaf8ab79a3f1830e8bf9e
treed882ed4ee6655576bd0b17a75ed0ab8fd12be4ea
parent0e80f3f88deaefc03e5fd204190daab6f761e73d
Fix missing initialization in pg_restore_extended_stats()

The tuple data upserted into pg_statistic_ext_data was missing an
initialization for the nulls flag of stxoid and stxdinherit.  This would
cause an incorrect handling of the stats data restored.

This issue has been spotted by CatalogTupleCheckConstraints(),
translating to a NOT NULL constraint inconsistency, while playing more
with the follow-up portions of the patch set.

Oversight in 0e80f3f88dea (mea culpa).  Surprisingly, the buildfarm did
not complain yet.

Discussion: https://postgr.es/m/CADkLM=c7DY3Jv6ef0n_MGUJ1FyTMUoT697LbkST05nraVGNHYg@mail.gmail.com
src/backend/statistics/extended_stats_funcs.c