diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2022-11-13 08:45:14 -0500 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2022-11-13 09:02:05 -0500 |
commit | 7a387f513d6c583b1c3fe5e4e0ea2b8cb92c85da (patch) | |
tree | 61eaa4ec691263064b17d8ee3ee19c41ea3501c5 /src/backend/utils/adt/arrayutils.c | |
parent | e5f94d42eb38f39af81f934d70c3969913f2862e (diff) | |
download | postgresql-7a387f513d6c583b1c3fe5e4e0ea2b8cb92c85da.tar.gz postgresql-7a387f513d6c583b1c3fe5e4e0ea2b8cb92c85da.zip |
Make PostgreSQL::Test::Cluster::config_data more flexible
Currently this only allows for one argument, which must be present, and
always returns a single string. With this change the following now all
work:
$all_config = $node->config_data;
%config_map = ($node->config_data);
$incdir = $node->config_data('--include-dir');
($incdir, $sharedir) = $node->config_data(
qw(--include-dir --share-dir));
Backpatch to release 15 where this was introduced.
Discussion: https://postgr.es/m/73eea68e-3b6f-5f63-6024-25ed26b52016@dunslane.net
Reviewed by Tom Lane, Alvaro Herrera, Michael Paquier.
Diffstat (limited to 'src/backend/utils/adt/arrayutils.c')
0 files changed, 0 insertions, 0 deletions