pgsql: Fix wrong construct_array_builtin() call in GUCArrayDelete() - Mailing list pgsql-committers

From Alexander Korotkov
Subject pgsql: Fix wrong construct_array_builtin() call in GUCArrayDelete()
Date
Msg-id E1ps78u-005D9l-7L@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/db93e739ac61332126207b16f14da93f8ecac594

Modified Files
--------------
src/backend/utils/misc/guc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: In hstore_plpython, avoid crashing when return value isn't a map
Next
From: Nathan Bossart
Date:
Subject: pgsql: Prevent underflow in KeepLogSeg().