Retrieves information about the installed version of Greenplum Database.
pg_config [<option> ...]
The pg_config
utility prints configuration parameters of the currently installed version of Greenplum Database. It is intended, for example, to be used by software packages that want to interface to Greenplum Database to facilitate finding the required header files and libraries. Note that information printed out by pg_config
is for the Greenplum Database master only.
If more than one option is given, the information is printed in that order, one item per line. If no options are given, all available information is printed, with labels.
psql
program. This is normally also the location where the
pg_config
program resides.
CPPFLAGS
variable that was used for building Greenplum Database. This shows C compiler switches needed at preprocessing time.
CFLAGS
variable that was used for building Greenplum Database. This shows C compiler switches.
CFLAGS_SL
variable that was used for building Greenplum Database. This shows extra C compiler switches used for building shared libraries.
LDFLAGS
variable that was used for building Greenplum Database. This shows linker switches.
LDFLAGS_SL
variable that was used for building Greenplum Database. This shows linker switches used for building shared libraries.
LIBS
variable that was used for building Greenplum Database. This normally contains
-l
switches for external libraries linked into Greenplum Database.
To reproduce the build configuration of the current Greenplum Database installation, run the following command:
eval ./configure 'pg_config --configure'
The output of pg_config --configure
contains shell quotation marks so arguments with spaces are represented correctly. Therefore, using eval
is required for proper results.