PostgreSQL Source Code git master
|
#include "postgres.h"
#include "access/htup_details.h"
#include "access/transam.h"
#include "access/xlog.h"
#include "access/xlog_internal.h"
#include "catalog/pg_control.h"
#include "common/controldata_utils.h"
#include "funcapi.h"
#include "miscadmin.h"
#include "storage/lwlock.h"
#include "utils/builtins.h"
#include "utils/pg_lsn.h"
#include "utils/timestamp.h"
Go to the source code of this file.
Functions | |
Datum | pg_control_system (PG_FUNCTION_ARGS) |
Datum | pg_control_checkpoint (PG_FUNCTION_ARGS) |
Datum | pg_control_recovery (PG_FUNCTION_ARGS) |
Datum | pg_control_init (PG_FUNCTION_ARGS) |
Datum pg_control_checkpoint | ( | PG_FUNCTION_ARGS | ) |
Definition at line 70 of file pg_controldata.c.
References BoolGetDatum(), ControlFileData::checkPoint, ControlFileData::checkPointCopy, ControlFile, CStringGetTextDatum, DataDir, elog, EpochFromFullTransactionId, ereport, errmsg(), ERROR, CheckPoint::fullPageWrites, get_call_result_type(), get_controlfile(), heap_form_tuple(), HeapTupleGetDatum(), Int32GetDatum(), LSNGetDatum(), LW_SHARED, LWLockAcquire(), LWLockRelease(), MAXFNAMELEN, CheckPoint::newestCommitTsXid, CheckPoint::nextMulti, CheckPoint::nextMultiOffset, CheckPoint::nextOid, CheckPoint::nextXid, ObjectIdGetDatum(), CheckPoint::oldestActiveXid, CheckPoint::oldestCommitTsXid, CheckPoint::oldestMulti, CheckPoint::oldestMultiDB, CheckPoint::oldestXid, CheckPoint::oldestXidDB, PG_RETURN_DATUM, CheckPoint::PrevTimeLineID, psprintf(), CheckPoint::redo, CheckPoint::ThisTimeLineID, CheckPoint::time, time_t_to_timestamptz(), TimestampTzGetDatum(), TransactionIdGetDatum(), TYPEFUNC_COMPOSITE, values, wal_segment_size, XidFromFullTransactionId, XLByteToSeg, and XLogFileName().
Datum pg_control_init | ( | PG_FUNCTION_ARGS | ) |
Definition at line 204 of file pg_controldata.c.
References ControlFileData::blcksz, BoolGetDatum(), ControlFile, ControlFileData::data_checksum_version, DataDir, elog, ereport, errmsg(), ERROR, ControlFileData::float8ByVal, get_call_result_type(), get_controlfile(), heap_form_tuple(), HeapTupleGetDatum(), ControlFileData::indexMaxKeys, Int32GetDatum(), ControlFileData::loblksize, LW_SHARED, LWLockAcquire(), LWLockRelease(), ControlFileData::maxAlign, ControlFileData::nameDataLen, PG_RETURN_DATUM, ControlFileData::relseg_size, ControlFileData::toast_max_chunk_size, TYPEFUNC_COMPOSITE, values, ControlFileData::xlog_blcksz, and ControlFileData::xlog_seg_size.
Datum pg_control_recovery | ( | PG_FUNCTION_ARGS | ) |
Definition at line 163 of file pg_controldata.c.
References ControlFileData::backupEndPoint, ControlFileData::backupEndRequired, ControlFileData::backupStartPoint, BoolGetDatum(), ControlFile, DataDir, elog, ereport, errmsg(), ERROR, get_call_result_type(), get_controlfile(), heap_form_tuple(), HeapTupleGetDatum(), Int32GetDatum(), LSNGetDatum(), LW_SHARED, LWLockAcquire(), LWLockRelease(), ControlFileData::minRecoveryPoint, ControlFileData::minRecoveryPointTLI, PG_RETURN_DATUM, TYPEFUNC_COMPOSITE, and values.
Datum pg_control_system | ( | PG_FUNCTION_ARGS | ) |
Definition at line 32 of file pg_controldata.c.
References ControlFileData::catalog_version_no, ControlFile, DataDir, elog, ereport, errmsg(), ERROR, get_call_result_type(), get_controlfile(), heap_form_tuple(), HeapTupleGetDatum(), Int32GetDatum(), Int64GetDatum(), LW_SHARED, LWLockAcquire(), LWLockRelease(), ControlFileData::pg_control_version, PG_RETURN_DATUM, ControlFileData::system_identifier, ControlFileData::time, time_t_to_timestamptz(), TimestampTzGetDatum(), TYPEFUNC_COMPOSITE, and values.