mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-02-01 13:27:47 +02:00
PGPRO-1205: Show PostgreSQL version via --version argument
This commit is contained in:
parent
a046e5f016
commit
3fcdae09bd
@ -224,7 +224,14 @@ main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
if (argc == 2)
|
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);
|
exit(0);
|
||||||
}
|
}
|
||||||
else if (strcmp(argv[2], "--help") == 0)
|
else if (strcmp(argv[2], "--help") == 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user