Add function to safely modify postgresql.auto.conf

This is required for PostgreSQL 12 and later.
This commit is contained in:
Ian Barwick
2019-08-14 16:57:42 +09:00
parent 4ebc43fd63
commit f5044465cb
7 changed files with 190 additions and 27 deletions

View File

@@ -71,6 +71,7 @@ do_node_status(void)
PQExpBufferData output;
KeyValueList node_status = {NULL, NULL};
KeyValueListCell *cell = NULL;
NodeInfoList missing_slots = T_NODE_INFO_LIST_INITIALIZER;
ItemList warnings = {NULL, NULL};
@@ -465,8 +466,6 @@ do_node_status(void)
if (runtime_options.output_mode == OM_CSV)
{
KeyValueListCell *cell = NULL;
appendPQExpBuffer(&output,
"\"Node name\",\"%s\"\n",
node_info.node_name);
@@ -540,8 +539,6 @@ do_node_status(void)
}
else
{
KeyValueListCell *cell = NULL;
appendPQExpBuffer(&output,
"Node \"%s\":\n",
node_info.node_name);