summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavan Deolasee2016-10-14 10:19:49 +0000
committerPavan Deolasee2016-10-18 10:07:49 +0000
commit600f17816e4c8eee6e57a5edb77b2b8b9ca55fc5 (patch)
tree3953353e0c77f9fde1b9ce6b9f694712c8cf8509
parent71f10a7ab8cd681057a86dde197bfb8040b71a70 (diff)
Use version string from the server for pgxc_ctl
-rw-r--r--contrib/pgxc_ctl/pgxc_ctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/pgxc_ctl/pgxc_ctl.c b/contrib/pgxc_ctl/pgxc_ctl.c
index ff8848717e..81d732753d 100644
--- a/contrib/pgxc_ctl/pgxc_ctl.c
+++ b/contrib/pgxc_ctl/pgxc_ctl.c
@@ -49,6 +49,7 @@
#include <getopt.h>
#include "config.h"
+#include "pg_config.h"
#include "variables.h"
#include "pgxc_ctl.h"
#include "bash_handler.h"
@@ -67,7 +68,6 @@ char pgxc_ctl_config_path[MAXPATH+1];
char progname[MAXPATH+1];
char *myName;
char *defaultDatabase;
-#define versionString "V9.2 for Postgres-XL 9.2"
FILE *inF;
FILE *outF;
@@ -603,7 +603,7 @@ int main(int argc, char *argv[])
static void print_version(void)
{
- printf("Pgxc_ctl %s\n", versionString);
+ printf("Pgxc_ctl %s\n", PG_VERSION);
}
static void print_help(void)