From: Pavan Deolasee Date: Fri, 14 Oct 2016 10:19:49 +0000 (+0530) Subject: Use version string from the server for pgxc_ctl X-Git-Tag: XL9_5_R1_4~9 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=ed87748217a39b37940e365cb648f40bac84e9f2;p=postgres-xl.git Use version string from the server for pgxc_ctl --- 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 #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)