1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-09 14:45:47 +02:00

bugfix: print "version" command output to stdout instead of stderr

This commit is contained in:
Grigory Smolkin 2019-07-31 17:16:57 +03:00
parent 46f875b4bd
commit 7ead1199c2

View File

@ -323,11 +323,11 @@ main(int argc, char *argv[])
|| strcmp(argv[1], "-V") == 0)
{
#ifdef PGPRO_VERSION
fprintf(stderr, "%s %s (Postgres Pro %s %s)\n",
fprintf(stdout, "%s %s (Postgres Pro %s %s)\n",
PROGRAM_NAME, PROGRAM_VERSION,
PGPRO_VERSION, PGPRO_EDITION);
#else
fprintf(stderr, "%s %s (PostgreSQL %s)\n",
fprintf(stdout, "%s %s (PostgreSQL %s)\n",
PROGRAM_NAME, PROGRAM_VERSION, PG_VERSION);
#endif
exit(0);