Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions pages/common/pg_config.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# pg_config

> Display information about the installed PostgreSQL version.
> More information: <https://www.postgresql.org/docs/current/app-pgconfig.html>.

- Show the directory where PostgreSQL binaries are installed:

`pg_config --bindir`

- Show the directory for library files:

`pg_config --libdir`

- Show the directory for include files (C headers):

`pg_config --includedir`

- Show the directory for shared data files:

`pg_config --sharedir`

- Show the directory for locale data:

`pg_config --localedir`

- Display help:

`pg_config {{[-?|--help]}}`

- Display version:

`pg_config --version`