RefLib

Reference library for AI

Back

postgresql_16:3.6.26.10 Control Data Functions

PostgreSQL 16 > The SQL Language > Functions and Operators > System Information Functions and Operators > Control Data Functions

The functions shown in (see functions-controldata) print information initialized during initdb, such as the catalog version. They also show information about write-ahead logging and checkpoint processing. This information is cluster-wide, not specific to any one database. These functions provide most of the same information, from the same source, as the (see postgresql_16:7.3.4) application.

| Function Description | | --- | | pg_control_checkpoint () record Returns information about current checkpoint state, as shown in (see functions-pg-control-checkpoint). | | pg_control_system () record Returns information about current control file state, as shown in (see functions-pg-control-system). | | pg_control_init () record Returns information about cluster initialization state, as shown in (see functions-pg-control-init). | | pg_control_recovery () record Returns information about recovery state, as shown in (see functions-pg-control-recovery). |

| Column Name | Data Type | | --- | --- | | checkpoint_lsn | pg_lsn | | redo_lsn | pg_lsn | | redo_wal_file | text | | timeline_id | integer | | prev_timeline_id | integer | | full_page_writes | boolean | | next_xid | text | | next_oid | oid | | next_multixact_id | xid | | next_multi_offset | xid | | oldest_xid | xid | | oldest_xid_dbid | oid | | oldest_active_xid | xid | | oldest_multi_xid | xid | | oldest_multi_dbid | oid | | oldest_commit_ts_xid | xid | | newest_commit_ts_xid | xid | | checkpoint_time | timestamp with time zone |

| Column Name | Data Type | | --- | --- | | pg_control_version | integer | | catalog_version_no | integer | | system_identifier | bigint | | pg_control_last_modified | timestamp with time zone |

| Column Name | Data Type | | --- | --- | | max_data_alignment | integer | | database_block_size | integer | | blocks_per_segment | integer | | wal_block_size | integer | | bytes_per_wal_segment | integer | | max_identifier_length | integer | | max_index_columns | integer | | max_toast_chunk_size | integer | | large_object_chunk_size | integer | | float8_pass_by_value | boolean | | data_page_checksum_version | integer |

| Column Name | Data Type | | --- | --- | | min_recovery_end_lsn | pg_lsn | | min_recovery_end_timeline | integer | | backup_start_lsn | pg_lsn | | backup_end_lsn | pg_lsn | | end_of_backup_record_required | boolean |

Back