pgsql: Introduce pg_settings_get_flags() to find flags associated to a

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Introduce pg_settings_get_flags() to find flags associated to a
Date: 2022-01-30 23:57:38
Message-ID: E1nEK4g-0006xh-03@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Introduce pg_settings_get_flags() to find flags associated to a GUC

The most meaningful flags are shown, which are the ones useful for the
user and for automating and extending the set of tests supported
currently by check_guc.

This script may actually be removed in the future, but we are not
completely sure yet if and how we want to support the remaining sanity
checks performed there, that are now integrated in the main regression
test suite as of this commit.

Thanks also to Peter Eisentraut and Kyotaro Horiguchi for the
discussion.

Bump catalog version.

Author: Justin Pryzby
Discussion: https://postgr.es/m/20211129030833.GJ17618@telsasoft.com

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/func.sgml | 37 +++++++++++++++++
src/backend/utils/misc/guc.c | 39 ++++++++++++++++++
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_proc.dat | 5 +++
src/test/regress/expected/guc.out | 83 +++++++++++++++++++++++++++++++++++++++
src/test/regress/sql/guc.sql | 43 ++++++++++++++++++++
6 files changed, 208 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2022-01-31 00:44:36 pgsql: plperl: windows: Use Perl_setlocale on 5.28+, fixing compile fai
Previous Message Tom Lane 2022-01-30 18:33:34 pgsql: psql: improve tab-complete's handling of variant SQL names.