PostgreSQL Source Code git master
|
#include "postgres.h"
#include "backup/walsummary.h"
#include "common/blkreftable.h"
#include "funcapi.h"
#include "miscadmin.h"
#include "postmaster/walsummarizer.h"
#include "utils/fmgrprotos.h"
#include "utils/pg_lsn.h"
Go to the source code of this file.
Macros | |
#define | NUM_WS_ATTS 3 |
#define | NUM_SUMMARY_ATTS 6 |
#define | NUM_STATE_ATTS 4 |
#define | MAX_BLOCKS_PER_CALL 256 |
Functions | |
Datum | pg_available_wal_summaries (PG_FUNCTION_ARGS) |
Datum | pg_wal_summary_contents (PG_FUNCTION_ARGS) |
Datum | pg_get_wal_summarizer_state (PG_FUNCTION_ARGS) |
#define MAX_BLOCKS_PER_CALL 256 |
Definition at line 26 of file walsummaryfuncs.c.
#define NUM_STATE_ATTS 4 |
Definition at line 25 of file walsummaryfuncs.c.
#define NUM_SUMMARY_ATTS 6 |
Definition at line 24 of file walsummaryfuncs.c.
#define NUM_WS_ATTS 3 |
Definition at line 23 of file walsummaryfuncs.c.
Datum pg_available_wal_summaries | ( | PG_FUNCTION_ARGS | ) |
Definition at line 32 of file walsummaryfuncs.c.
References CHECK_FOR_INTERRUPTS, WalSummaryFile::end_lsn, GetWalSummaries(), heap_form_tuple(), InitMaterializedSRF(), Int64GetDatum(), InvalidXLogRecPtr, lfirst, LSNGetDatum(), NUM_WS_ATTS, ReturnSetInfo::setDesc, ReturnSetInfo::setResult, WalSummaryFile::start_lsn, WalSummaryFile::tli, tuplestore_puttuple(), and values.
Datum pg_get_wal_summarizer_state | ( | PG_FUNCTION_ARGS | ) |
Definition at line 177 of file walsummaryfuncs.c.
References elog, ERROR, get_call_result_type(), GetWalSummarizerState(), heap_form_tuple(), HeapTupleGetDatum(), Int32GetDatum(), Int64GetDatum(), LSNGetDatum(), NUM_STATE_ATTS, PG_RETURN_DATUM, TYPEFUNC_COMPOSITE, and values.
Datum pg_wal_summary_contents | ( | PG_FUNCTION_ARGS | ) |
Definition at line 69 of file walsummaryfuncs.c.
References BlockNumberIsValid(), BlockRefTableReaderGetBlocks(), BlockRefTableReaderNextRelation(), BoolGetDatum(), CHECK_FOR_INTERRUPTS, CreateBlockRefTableReader(), RelFileLocator::dbOid, DestroyBlockRefTableReader(), WalSummaryFile::end_lsn, ereport, errcode(), errmsg(), ERROR, WalSummaryIO::file, FileClose(), FilePathName(), WalSummaryIO::filepos, heap_form_tuple(), i, InitMaterializedSRF(), Int16GetDatum(), Int64GetDatum(), MAX_BLOCKS_PER_CALL, NUM_SUMMARY_ATTS, ObjectIdGetDatum(), OpenWalSummaryFile(), PG_GETARG_INT64, PG_GETARG_LSN, PG_INT32_MAX, ReadWalSummary(), RelFileLocator::relNumber, ReportWalSummaryError(), ReturnSetInfo::setDesc, ReturnSetInfo::setResult, RelFileLocator::spcOid, WalSummaryFile::start_lsn, WalSummaryFile::tli, tuplestore_puttuple(), and values.