PG_CONFIGSection: PostgreSQL Client Applications (1)Updated: 2003-11-02 |
PG_CONFIGSection: PostgreSQL Client Applications (1)Updated: 2003-11-02 |
pg_config { --bindir | --includedir | --includedir-server | --libdir | --pkglibdir | --configure | --version }...
The pg_config utility prints configuration parameters of the currently installed version of PostgreSQL. It is intended, for example, to be used by software packages that want to interface to PostgreSQL to facilitate finding the required header files and libraries.
To use pg_config, supply one or more of the following options:
If more than one option (except for --version) is given, the information is printed in that order, one item per line.
The option --includedir-server was new in PostgreSQL 7.2. In prior releases, the server include files were installed in the same location as the client headers, which could be queried with the option --includedir. To make your package handle both cases, try the newer option first and test the exit status to see whether it succeeded.
In releases prior to PostgreSQL 7.1, before the pg_config came to be, a method for finding the equivalent configuration information did not exist.
The pg_config utility first appeared in PostgreSQL 7.1.