summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Conway2016-02-17 18:00:34 +0000
committerJoe Conway2016-02-17 18:00:34 +0000
commitfc8a81e3e73e30ac083cc60837ecf98b33d5cc7e (patch)
treea3a882a7dcdf73cf7d1acbeee0781635d2662a28
parenta5c43b886942e96ec5c745041f2d6a50c3205147 (diff)
Revert inadvertant change in pg_config behavior
In commit a5c43b88 the behavior of command line pg_config was inadvertantly changed to include the config name when specific configs are requested, similar to when none are requested and all are emitted. This breaks scripts that expect to use pg_config for e.g. PGXS. Revert the behavior to the previous.
-rw-r--r--src/bin/pg_config/pg_config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_config/pg_config.c b/src/bin/pg_config/pg_config.c
index 23c04957be..9048566f0d 100644
--- a/src/bin/pg_config/pg_config.c
+++ b/src/bin/pg_config/pg_config.c
@@ -121,7 +121,7 @@ show_item(const char *configname,
for (i = 0; i < configdata_len; i++)
{
if (strcmp(configname, configdata[i].name) == 0)
- printf("%s = %s\n", configdata[i].name, configdata[i].setting);
+ printf("%s\n", configdata[i].setting);
}
}