pgsql: Fix wrong construct_array_builtin() call in GUCArrayDelete()

From: Alexander Korotkov <akorotkov(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix wrong construct_array_builtin() call in GUCArrayDelete()
Date: 2023-04-27 19:19:01
Message-ID: E1ps78u-005D9l-7L@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Nathan Bossart 2023-04-27 21:39:54 pgsql: Prevent underflow in KeepLogSeg().
Previous Message Tom Lane 2023-04-27 15:55:25 pgsql: In hstore_plpython, avoid crashing when return value isn't a map