Commit fc8a81e3 authored by Joe Conway's avatar Joe Conway

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.
parent a5c43b88
...@@ -121,7 +121,7 @@ show_item(const char *configname, ...@@ -121,7 +121,7 @@ show_item(const char *configname,
for (i = 0; i < configdata_len; i++) for (i = 0; i < configdata_len; i++)
{ {
if (strcmp(configname, configdata[i].name) == 0) if (strcmp(configname, configdata[i].name) == 0)
printf("%s = %s\n", configdata[i].name, configdata[i].setting); printf("%s\n", configdata[i].setting);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment