Add GUC_LIST_INPUT and GUC_LIST_QUOTE to unix_socket_directories
authorMichael Paquier <michael@paquier.xyz>
Sat, 7 Nov 2020 01:30:22 +0000 (10:30 +0900)
committerMichael Paquier <michael@paquier.xyz>
Sat, 7 Nov 2020 01:30:22 +0000 (10:30 +0900)
commita05dbf477b0ef173adb1ae5d004cbeb0cf400b66
tree6b5be2fa50d4455f68966949c16e446d7ef1e1ab
parentceaeac54f75f0117a7b3caa2f8ecba5cfac18ee5
Add GUC_LIST_INPUT and GUC_LIST_QUOTE to unix_socket_directories

This should have been done in the initial commit that made
unix_socket_directories a list as of c9b0cbe.  This change allows to
support correctly the case of ALTER SYSTEM, where it is possible to
specify multiple paths as a list, like the following pattern where
flattening is applied to each item:
ALTER SYSTEM SET unix_socket_directories = '/path1', '/path2';

Any parameters specified in postgresql.conf are parsed the same way, so
there is no compatibility change.  pg_dump has a hardcoded list of
parameters marked with GUC_LIST_QUOTE, that gets its routine update.
These are reordered alphabetically for clarity.

Author: Ian Lawrence Barwick
Reviewed-by: Peter Eisentraunt, Tom Lane, Michael Paquier
Discussion: http://postgr.es/m/CAB8KJ=iMOtNY6_sUwV=LQVCJ2zgYHBDyNzVfvE5GN3WQ3v9kQg@mail.gmail.com
src/backend/utils/misc/guc.c
src/bin/pg_dump/dumputils.c