diff options
author | Joe Conway <mail@joeconway.com> | 2016-03-05 11:10:19 -0800 |
---|---|---|
committer | Joe Conway <mail@joeconway.com> | 2016-03-05 11:10:19 -0800 |
commit | dc7d70ea05deca9dfc6a25043d406b57cc8f6c30 (patch) | |
tree | 227bb6a01ec3a15386b29d22d64bc90e92a9b1f9 /src/include/utils/builtins.h | |
parent | d34794f7d5566effd342dd0ebaca3de3b48656f0 (diff) | |
download | postgresql-dc7d70ea05deca9dfc6a25043d406b57cc8f6c30.tar.gz postgresql-dc7d70ea05deca9dfc6a25043d406b57cc8f6c30.zip |
Expose control file data via SQL accessible functions.
Add four new SQL accessible functions: pg_control_system(),
pg_control_checkpoint(), pg_control_recovery(), and pg_control_init()
which expose a subset of the control file data.
Along the way move the code to read and validate the control file to
src/common, where it can be shared by the new backend functions
and the original pg_controldata frontend program.
Patch by me, significant input, testing, and review by Michael Paquier.
Diffstat (limited to 'src/include/utils/builtins.h')
-rw-r--r-- | src/include/utils/builtins.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h index 7ec93c95c7c..115f8afb45b 100644 --- a/src/include/utils/builtins.h +++ b/src/include/utils/builtins.h @@ -1151,6 +1151,12 @@ extern Datum show_all_file_settings(PG_FUNCTION_ARGS); /* pg_config.c */ extern Datum pg_config(PG_FUNCTION_ARGS); +/* pg_controldata.c */ +extern Datum pg_control_checkpoint(PG_FUNCTION_ARGS); +extern Datum pg_control_system(PG_FUNCTION_ARGS); +extern Datum pg_control_init(PG_FUNCTION_ARGS); +extern Datum pg_control_recovery(PG_FUNCTION_ARGS); + /* rls.c */ extern Datum row_security_active(PG_FUNCTION_ARGS); extern Datum row_security_active_name(PG_FUNCTION_ARGS); |