@@ -380,17 +380,17 @@ show_version(bool all)
380
380
if (all )
381
381
printf ("VERSION = " );
382
382
printf ("PostgreSQL " PG_VERSION "\n" );
383
+ }
384
+
383
385
#ifdef PGPRO_VERSION
386
+ static void
387
+ show_pgpro_version (bool all )
388
+ {
384
389
if (all )
385
- {/*
386
- For compatibility works only in ALL mode
387
- */
388
390
printf ("PGPRO_VERSION = " );
389
- printf ("PostgresPro " PGPRO_VERSION "\n" );
390
- }
391
- #endif
391
+ printf ("PostgresPro " PGPRO_VERSION "\n" );
392
392
}
393
-
393
+ #endif
394
394
395
395
/*
396
396
* Table of known information items
@@ -427,6 +427,9 @@ static const InfoItem info_items[] = {
427
427
{"--ldflags_sl" ,show_ldflags_sl },
428
428
{"--libs" ,show_libs },
429
429
{"--version" ,show_version },
430
+ #ifdef PGPRO_VERSION
431
+ {"--pgpro-version" ,show_pgpro_version },
432
+ #endif
430
433
{NULL ,NULL }
431
434
};
432
435
@@ -463,9 +466,16 @@ help(void)
463
466
printf (_ (" --ldflags_sl show LDFLAGS_SL value used when PostgreSQL was built\n" ));
464
467
printf (_ (" --libs show LIBS value used when PostgreSQL was built\n" ));
465
468
printf (_ (" --version show the PostgreSQL version\n" ));
469
+ #ifdef PGPRO_VERSION
470
+ printf (_ (" --pgpro-version show the PostgresPRO version\n" ));
471
+ #endif
466
472
printf (_ (" -?, --help show this help, then exit\n" ));
467
473
printf (_ ("\nWith no arguments, all known items are shown.\n\n" ));
474
+ #ifdef PGPRO_VERSION
475
+ printf (_ ("Report bugs to <bugs@postgrespro.ru>.\n" ));
476
+ #else
468
477
printf (_ ("Report bugs to <pgsql-bugs@postgresql.org>.\n" ));
478
+ #endif
469
479
}
470
480
471
481
static void