]> granicus.if.org Git - postgresql/commit
Expose control file data via SQL accessible functions.
authorJoe Conway <mail@joeconway.com>
Sat, 5 Mar 2016 19:10:19 +0000 (11:10 -0800)
committerJoe Conway <mail@joeconway.com>
Sat, 5 Mar 2016 19:10:19 +0000 (11:10 -0800)
commitdc7d70ea05deca9dfc6a25043d406b57cc8f6c30
tree227bb6a01ec3a15386b29d22d64bc90e92a9b1f9
parentd34794f7d5566effd342dd0ebaca3de3b48656f0
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.
doc/src/sgml/func.sgml
src/backend/utils/misc/Makefile
src/backend/utils/misc/pg_controldata.c [new file with mode: 0644]
src/bin/pg_controldata/pg_controldata.c
src/common/Makefile
src/common/controldata_utils.c [new file with mode: 0644]
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/include/common/controldata_utils.h [new file with mode: 0644]
src/include/utils/builtins.h
src/tools/msvc/Mkvcbuild.pm