Improve the version message to actually show the repmgr version not

only postgresql's one
This commit is contained in:
Jaime Casanova
2012-06-25 22:53:16 -05:00
parent 30d35d5b4c
commit be5cbe4ddd
3 changed files with 8 additions and 2 deletions

View File

@@ -30,6 +30,7 @@
#include "config.h"
#include "log.h"
#include "strutil.h"
#include "version.h"
#include "libpq/pqsignal.h"
@@ -116,7 +117,7 @@ main(int argc, char **argv)
}
if (strcmp(argv[1], "--version") == 0 || strcmp(argv[1], "-V") == 0)
{
printf("%s (PostgreSQL) " PG_VERSION "\n", progname);
printf("%s %s (PostgreSQL %s)\n", progname, REPMGR_VERSION, PG_VERSION);
exit(SUCCESS);
}
}