aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/builtins.h
diff options
context:
space:
mode:
authorJoe Conway <mail@joeconway.com>2016-02-17 09:12:06 -0800
committerJoe Conway <mail@joeconway.com>2016-02-17 09:12:06 -0800
commita5c43b886942e96ec5c745041f2d6a50c3205147 (patch)
treeb7d1967286366131bc65d34457fb0ba91ec710b8 /src/include/utils/builtins.h
parentf1f5ec1efafe74ca45e24e0bf3371b1d6985c8ee (diff)
downloadpostgresql-a5c43b886942e96ec5c745041f2d6a50c3205147.tar.gz
postgresql-a5c43b886942e96ec5c745041f2d6a50c3205147.zip
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.
Diffstat (limited to 'src/include/utils/builtins.h')
-rw-r--r--src/include/utils/builtins.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h
index affcc01a409..a784de9d287 100644
--- a/src/include/utils/builtins.h
+++ b/src/include/utils/builtins.h
@@ -1147,6 +1147,9 @@ extern Datum set_config_by_name(PG_FUNCTION_ARGS);
extern Datum show_all_settings(PG_FUNCTION_ARGS);
extern Datum show_all_file_settings(PG_FUNCTION_ARGS);
+/* pg_config.c */
+extern Datum pg_config(PG_FUNCTION_ARGS);
+
/* rls.c */
extern Datum row_security_active(PG_FUNCTION_ARGS);
extern Datum row_security_active_name(PG_FUNCTION_ARGS);