Skip to content

Commit d4b8539

Browse files
committed
Support for PGPRO_VERSION printing in 'all' mode. In --version mode works like vanilla pg_config, e.g. prints only VERSION value.
1 parent 2dafe4a commit d4b8539

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/bin/pg_config/pg_config.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,15 @@ show_version(bool all)
380380
if (all)
381381
printf("VERSION = ");
382382
printf("PostgreSQL " PG_VERSION "\n");
383+
#ifdef PGPRO_VERSION
384+
if (all)
385+
{ /*
386+
For compatibility works only in ALL mode
387+
*/
388+
printf("PGPRO_VERSION = ");
389+
printf("PostgresPro " PGPRO_VERSION "\n");
390+
}
391+
#endif
383392
}
384393

385394

0 commit comments

Comments
 (0)