Fix wrong construct_array_builtin() call in GUCArrayDelete()
authorAlexander Korotkov <[email protected]>
Thu, 27 Apr 2023 19:06:14 +0000 (22:06 +0300)
committerAlexander Korotkov <[email protected]>
Thu, 27 Apr 2023 19:06:14 +0000 (22:06 +0300)
commitdb93e739ac61332126207b16f14da93f8ecac594
tree5a75223d955e654680b5289c57ffe865bd1ecfd0
parentdf38157d94662a64e2f83aa8a0110fd1ee7c4776
Fix wrong construct_array_builtin() call in GUCArrayDelete()

The current code unintentionally uses the wrong datum to construct an array.
The bug was introduced by 096dd80f3c, so no backpatching is needed.

Reported-by: David Steele
Discussion: https://postgr.es/m/d46f9265-ff3c-6743-2278-6772598233c2%40pgmasters.net
Author: Nathan Bossart
Reviewed-by: David Steele, Tom Lane
src/backend/utils/misc/guc.c