]> granicus.if.org Git - postgresql/commitdiff
Revert inadvertant change in pg_config behavior
authorJoe Conway <mail@joeconway.com>
Wed, 17 Feb 2016 18:00:34 +0000 (10:00 -0800)
committerJoe Conway <mail@joeconway.com>
Wed, 17 Feb 2016 18:00:34 +0000 (10:00 -0800)
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.

src/bin/pg_config/pg_config.c

index 23c04957be1eadc4f4dda3a8a350930263b0c1ed..9048566f0d456221b2376a98697b3acd3c927060 100644 (file)
@@ -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);
        }
 }