OS Manuals

/usr/lib/postgresql/18/bin/pg_config

spilo-4 compat package

From spilo-4-compat 4.1.2-r26 (enterprise-packages), captured 2026-11-08 by running pg_config --help (exit 0). permalink

pg_config provides information about the installed version of PostgreSQL.

Usage:
  pg_config [OPTION]...

Options:
  --bindir              show location of user executables
  --docdir              show location of documentation files
  --htmldir             show location of HTML documentation files
  --includedir          show location of C header files of the client
                        interfaces
  --pkgincludedir       show location of other C header files
  --includedir-server   show location of C header files for the server
  --libdir              show location of object code libraries
  --pkglibdir           show location of dynamically loadable modules
  --localedir           show location of locale support files
  --mandir              show location of manual pages
  --sharedir            show location of architecture-independent support files
  --sysconfdir          show location of system-wide configuration files
  --pgxs                show location of extension makefile
  --configure           show options given to "configure" script when
                        PostgreSQL was built
  --cc                  show CC value used when PostgreSQL was built
  --cppflags            show CPPFLAGS value used when PostgreSQL was built
  --cflags              show CFLAGS value used when PostgreSQL was built
  --cflags_sl           show CFLAGS_SL value used when PostgreSQL was built
  --ldflags             show LDFLAGS value used when PostgreSQL was built
  --ldflags_ex          show LDFLAGS_EX value used when PostgreSQL was built
  --ldflags_sl          show LDFLAGS_SL value used when PostgreSQL was built
  --libs                show LIBS value used when PostgreSQL was built
  --version             show the PostgreSQL version
  -?, --help            show this help, then exit

With no arguments, all known items are shown.

Report bugs to <pgsql-bugs@lists.postgresql.org>.
PostgreSQL home page: <https://www.postgresql.org/>
Options (24)
OptionDescriptionSource
--bindirshow location of user executableshelp
--docdirshow location of documentation fileshelp
--htmldirshow location of HTML documentation fileshelp
--includedirshow location of C header files of the client interfaceshelp
--pkgincludedirshow location of other C header fileshelp
--includedir-servershow location of C header files for the serverhelp
--libdirshow location of object code librarieshelp
--pkglibdirshow location of dynamically loadable moduleshelp
--localedirshow location of locale support fileshelp
--mandirshow location of manual pageshelp
--sharedirshow location of architecture-independent support fileshelp
--sysconfdirshow location of system-wide configuration fileshelp
--pgxsshow location of extension makefilehelp
--configureshow options given to "configure" script when PostgreSQL was builthelp
--ccshow CC value used when PostgreSQL was builthelp
--cppflagsshow CPPFLAGS value used when PostgreSQL was builthelp
--cflagsshow CFLAGS value used when PostgreSQL was builthelp
--cflags_slshow CFLAGS_SL value used when PostgreSQL was builthelp
--ldflagsshow LDFLAGS value used when PostgreSQL was builthelp
--ldflags_exshow LDFLAGS_EX value used when PostgreSQL was builthelp
--ldflags_slshow LDFLAGS_SL value used when PostgreSQL was builthelp
--libsshow LIBS value used when PostgreSQL was builthelp
--versionshow the PostgreSQL versionhelp
-?, --helpshow this help, then exithelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.