Fix uninitialized memory bug
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 22 Apr 2021 20:04:48 +0000 (16:04 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 22 Apr 2021 20:04:48 +0000 (16:04 -0400)
commit43b55ec4bc3bc06596d966391f16defe016310ec
tree5c56d6ef9bb0f09a8f736c3821ace4606d3d7022
parent84f15ccd4c25c4ffc4de6ed82f7658a3a199a1d7
Fix uninitialized memory bug

Have interested callers of find_inheritance_children set the
detached_exist value to false prior to calling it, so that that routine
only has to set it true in the rare cases where it is necessary.  Don't
touch it otherwise.

Per buildfarm member thorntail (which reported a UBSan failure here).
src/backend/catalog/pg_inherits.c
src/backend/partitioning/partdesc.c