Add new system view, pg_config
Joe Conway <mail@joeconway.com>
Add new system view, pg_config Move and refactor the underlying code for the pg_config client application to src/common in support of sharing it with a new system information SRF called pg_config() which makes the same information available via SQL. Additionally wrap the SRF with a new system view, as called pg_config. Patch by me with extensive input and review by Michael Paquier and additional review by Alvaro Herrera.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/catalogs.sgml | modified | +52 −0 |
| src/backend/catalog/system_views.sql | modified | +6 −0 |
| src/backend/utils/misc/Makefile | modified | +2 −2 |
| src/backend/utils/misc/pg_config.c | added | +103 −0 |
| src/bin/pg_config/Makefile | modified | +0 −14 |
| src/bin/pg_config/pg_config.c | modified | +41 −388 |
| src/common/config_info.c | added | +206 −0 |
| src/common/Makefile | modified | +16 −3 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/catalog/pg_proc.h | modified | +4 −0 |
| src/include/common/config_info.h | added | +21 −0 |
| src/include/port.h | modified | +1 −0 |
| src/include/utils/builtins.h | modified | +3 −0 |
| src/port/path.c | modified | +30 −0 |
| src/test/regress/expected/rules.out | modified | +3 −0 |
| src/tools/msvc/Mkvcbuild.pm | modified | +2 −2 |