mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user