pg_config
Retrieves information about the installed version of Greengage DB.
Synopsis
pg_config [<option> ...]
pg_config -? | --help
pg_config --gp_version
Description
The pg_config utility prints configuration parameters of the currently installed version of Greengage DB.
It is intended, for example, to be used by software packages that want to interface with Greengage DB to facilitate finding the required header files and libraries.
Note that information printed out by pg_config is for the Greengage DB 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.
Options
- --bindir
-
Print the location of user executables. Use this, for example, to find the
psqlprogram. This is normally also the location where thepg_configprogram resides. - --docdir
-
Print the location of documentation files.
- --htmldir
-
Print the location of HTML documentation files.
- --includedir
-
Print the location of C header files of the client interfaces.
- --pkgincludedir
-
Print the location of other C header files.
- --includedir-server
-
Print the location of C header files for server programming.
- --libdir
-
Print the location of object code libraries.
- --pkglibdir
-
Print the location of dynamically loadable modules, or where the server would search for them. Other architecture-dependent data files may also be installed in this directory.
- --localedir
-
Print the location of locale support files.
- --mandir
-
Print the location of manual pages.
- --sharedir
-
Print the location of architecture-independent support files.
- --sysconfdir
-
Print the location of system-wide configuration files.
- --pgxs
-
Print the location of extension makefiles.
- --configure
-
Print the options that were given to the
configurescript when Greengage DB was configured for building. - --cc
-
Print the value of the
CCvariable that was used for building Greengage DB. This shows the C compiler used. - --cppflags
-
Print the value of the
CPPFLAGSvariable that was used for building Greengage DB. This shows C compiler switches needed at preprocessing time. - --cflags
-
Print the value of the
CFLAGSvariable that was used for building Greengage DB. This shows C compiler switches. - --cflags_sl
-
Print the value of the
CFLAGS_SLvariable that was used for building Greengage DB. This shows extra C compiler switches used for building shared libraries. - --ldflags
-
Print the value of the
LDFLAGSvariable that was used for building Greengage DB. This shows linker switches. - --ldflags_ex
-
Print the value of the
LDFLAGS_EXvariable that was used for building Greengage DB. This shows linker switches that were used for building executables only. - --ldflags_sl
-
Print the value of the
LDFLAGS_SLvariable that was used for building Greengage DB. This shows linker switches used for building shared libraries only. - --libs
-
Print the value of the
LIBSvariable that was used for building Greengage DB. This normally contains-lswitches for external libraries linked into Greengage DB. - --version
-
Print the version of the PostgreSQL backend server.
- --gp_version
-
Print the version of Greengage DB.
Examples
To reproduce the build configuration of the current Greengage DB installation, run the following command:
$ pg_config --configure