From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove "array_nulls" GUC parameter.
Date: Wed, 07 Oct 2026 15:43:40 +0000
Message-ID: <E1xETnw-00000000hiq-2MvF@gemulon.postgresql.org> (raw)
Remove "array_nulls" GUC parameter.
This backwards-compatibility hack was introduced twenty years ago (in
8.2), and has surely been of no value for at least the last ten years.
However, we shouldn't just leave it sit, because as was just pointed
out it creates a dump/reload hazard: if it's set in the receiving
environment then array contents will not be restored correctly.
Other applications would likely be broken by it too, so whatever
residual value it may have seems outweighed by the possibility of
misuse.
Our precedent for retiring some other comparable parameters, such as
standard_conforming_strings, has been to leave the parameter in
existence but force it to a fixed value. I judge however that
that's not worth the trouble here, because there's no reason to
believe that a non-negligible number of applications are either
setting or reading this value. Let's just delete it in the master
branch and be done with it.
Bug: #19747
Reported-by: Ke <kehan5800@gmail.com>
Author: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Laurenz Albe <laurenz.albe@cybertec.at>
Discussion: https://postgr.es/m/19747-69b01e7fc190cd58@postgresql.org
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/e96efd07c72834da48d8a21e4672a150c500a08d
Modified Files
--------------
doc/src/sgml/array.sgml | 5 +----
doc/src/sgml/config.sgml | 26 --------------------------
src/backend/utils/adt/arrayfuncs.c | 7 +------
src/backend/utils/misc/guc_parameters.dat | 7 -------
src/backend/utils/misc/postgresql.conf.sample | 1 -
src/include/utils/array.h | 5 -----
6 files changed, 2 insertions(+), 49 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Remove "array_nulls" GUC parameter.
In-Reply-To: <E1xETnw-00000000hiq-2MvF@gemulon.postgresql.org>
References: <E1xETnw-00000000hiq-2MvF@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox