.\" auto-generated by docbook2man-spec $Revision: 1.1.1.1 $ PG_CONFIG - Online Linux Manual PageSection : 1
Updated : 2014-02-17
Source : Application
Note : PostgreSQL Client Applications

NAMEpg_config − retrieve information about the installed version of PostgreSQL

SYNOPSISpg_config [ option... ]

DESCRIPTIONThe 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.

OPTIONSTo use pg_config, supply one or more of the following options: --bindir  Print the location of user executables. Use this, for example, to find the psql program. This is normally also the location where the pg_config program 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 might also be installed in this directory.) --localedir  Print the location of locale support files. (This will be an empty string if locale support was not configured when PostgreSQL was built.) --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 configure script when PostgreSQL was configured for building. This can be used to reproduce the identical configuration, or to find out with what options a binary package was built. (Note however that binary packages often contain vendor-specific custom patches.) See also the examples below. --cc  Print the value of the CC variable that was used for building PostgreSQL. This shows the C compiler used. --cppflags  Print the value of the CPPFLAGS variable that was used for building PostgreSQL. This shows C compiler switches needed at preprocessing time (typically, -I switches). --cflags  Print the value of the CFLAGS variable that was used for building PostgreSQL. This shows C compiler switches. --cflags_sl  Print the value of the CFLAGS_SL variable that was used for building PostgreSQL. This shows extra C compiler switches used for building shared libraries. --ldflags  Print the value of the LDFLAGS variable that was used for building PostgreSQL. This shows linker switches. --ldflags_sl  Print the value of the LDFLAGS_SL variable that was used for building PostgreSQL. This shows linker switches used for building shared libraries. --libs  Print the value of the LIBS variable that was used for building PostgreSQL. This normally contains -l switches for external libraries linked into PostgreSQL. --version  Print the version of PostgreSQL. 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.

NOTESThe 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. The options --docdir, --pkgincludedir, --localedir, --mandir, --sharedir, --sysconfdir, --cc, --cppflags, --cflags, --cflags_sl, --ldflags, --ldflags_sl, and --libs are new in PostgreSQL 8.1. The option --htmldir is new in PostgreSQL 8.4. In releases prior to PostgreSQL 7.1, before pg_config came to be, a method for finding the equivalent configuration information did not exist.

EXAMPLETo reproduce the build configuration of the current PostgreSQL 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.
0
Johanes Gumabo
Data Size   :   15,435 byte
man-pg_config.1Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 236,701
Visitor ID   :     :  
Visitor IP   :   3.142.198.250   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (rof_escape_sequence|91|pg_config.1|1|\" auto-generated by docbook2man-spec $Revision: 1.1.1.1 $ |.\\" auto-generated by docbook2man-spec $Revision: 1.1.1.1 $ )         (parse_manual_page_|249|pg_config.1|1|\"|.\\" auto-generated by docbook2man-spec $Revision: 1.1.1.1 $ )