1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-20 11:34:51 +02:00

PGPRO-1205: Show PostgreSQL version via --version argument

This commit is contained in:
Arthur Zakirov 2017-12-06 19:00:00 +03:00
parent a046e5f016
commit 3fcdae09bd

View File

@ -224,7 +224,14 @@ main(int argc, char *argv[])
{
if (argc == 2)
{
fprintf(stderr, "%s %s\n", PROGRAM_NAME, PROGRAM_VERSION);
#ifdef PGPRO_VERSION
fprintf(stderr, "%s %s (PostgresPro %s %s)\n",
PROGRAM_NAME, PROGRAM_VERSION,
PGPRO_VERSION, PGPRO_EDITION);
#else
fprintf(stderr, "%s %s (PostgreSQL %s)\n",
PROGRAM_NAME, PROGRAM_VERSION, PG_VERSION);
#endif
exit(0);
}
else if (strcmp(argv[2], "--help") == 0)