PostgreSQL Source Code git master
|
#include "postgres.h"
#include "access/htup_details.h"
#include "access/relation.h"
#include "catalog/namespace.h"
#include "catalog/pg_type.h"
#include "funcapi.h"
#include "miscadmin.h"
#include "pageinspect.h"
#include "storage/bufmgr.h"
#include "storage/checksum.h"
#include "utils/builtins.h"
#include "utils/pg_lsn.h"
#include "utils/rel.h"
#include "utils/varlena.h"
Go to the source code of this file.
Variables | |
PG_MODULE_MAGIC | |
Definition at line 215 of file rawpage.c.
References ereport, errcode(), errdetail(), errmsg(), ERROR, palloc(), VARDATA_ANY, and VARSIZE_ANY_EXHDR.
Referenced by brin_page_type(), bt_page_items_bytea(), fsm_page_contents(), gin_leafpage_items(), gin_metapage_info(), gin_page_opaque_info(), page_checksum_internal(), page_header(), verify_brin_page(), verify_gist_page(), and verify_hash_page().
Datum get_raw_page | ( | PG_FUNCTION_ARGS | ) |
Definition at line 68 of file rawpage.c.
References ereport, errhint(), errmsg(), ERROR, get_raw_page_internal(), MAIN_FORKNUM, PG_GETARG_TEXT_PP, PG_GETARG_UINT32, PG_NARGS, PG_RETURN_BYTEA_P, and relname.
Datum get_raw_page_1_9 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 46 of file rawpage.c.
References ereport, errcode(), errmsg(), ERROR, get_raw_page_internal(), MAIN_FORKNUM, MaxBlockNumber, PG_GETARG_INT64, PG_GETARG_TEXT_PP, PG_RETURN_BYTEA_P, and relname.
Datum get_raw_page_fork | ( | PG_FUNCTION_ARGS | ) |
Definition at line 123 of file rawpage.c.
References forkname_to_number(), get_raw_page_internal(), PG_GETARG_TEXT_PP, PG_GETARG_UINT32, PG_RETURN_BYTEA_P, relname, and text_to_cstring().
Datum get_raw_page_fork_1_9 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 97 of file rawpage.c.
References ereport, errcode(), errmsg(), ERROR, forkname_to_number(), get_raw_page_internal(), MaxBlockNumber, PG_GETARG_INT64, PG_GETARG_TEXT_PP, PG_RETURN_BYTEA_P, relname, and text_to_cstring().
|
static |
Definition at line 142 of file rawpage.c.
References AccessShareLock, buf, BUFFER_LOCK_SHARE, BUFFER_LOCK_UNLOCK, BufferGetPage(), ereport, errcode(), errdetail_relkind_not_supported(), errmsg(), ERROR, LockBuffer(), makeRangeVarFromNameList(), palloc(), RBM_NORMAL, RelationData::rd_rel, ReadBufferExtended(), relation_close(), RELATION_IS_OTHER_TEMP, relation_openrv(), RelationGetNumberOfBlocksInFork(), RelationGetRelationName, ReleaseBuffer(), relname, SET_VARSIZE, superuser(), textToQualifiedNameList(), VARDATA, and VARHDRSZ.
Referenced by get_raw_page(), get_raw_page_1_9(), get_raw_page_fork(), and get_raw_page_fork_1_9().
Datum page_checksum | ( | PG_FUNCTION_ARGS | ) |
Definition at line 373 of file rawpage.c.
References page_checksum_internal(), and PAGEINSPECT_V1_8.
Datum page_checksum_1_9 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 364 of file rawpage.c.
References page_checksum_internal(), and PAGEINSPECT_V1_9.
|
static |
Definition at line 339 of file rawpage.c.
References ereport, errcode(), errmsg(), ERROR, get_page_from_raw(), MaxBlockNumber, PAGEINSPECT_V1_8, PageIsNew(), pg_checksum_page(), PG_GETARG_BYTEA_P, PG_GETARG_INT64, PG_GETARG_UINT32, PG_RETURN_INT16, PG_RETURN_NULL, and superuser().
Referenced by page_checksum(), and page_checksum_1_9().
Datum page_header | ( | PG_FUNCTION_ARGS | ) |
Definition at line 246 of file rawpage.c.
References Assert(), CStringGetTextDatum, elog, ereport, errcode(), errmsg(), ERROR, get_call_result_type(), get_page_from_raw(), heap_form_tuple(), HeapTupleGetDatum(), Int32GetDatum(), LSN_FORMAT_ARGS, LSNGetDatum(), PageGetLSN(), PageGetPageLayoutVersion(), PageGetPageSize(), PageHeaderData::pd_checksum, PageHeaderData::pd_flags, PageHeaderData::pd_lower, PageHeaderData::pd_prune_xid, PageHeaderData::pd_special, PageHeaderData::pd_upper, PG_GETARG_BYTEA_P, PG_RETURN_DATUM, snprintf, superuser(), TransactionIdGetDatum(), TupleDescAttr(), TYPEFUNC_COMPOSITE, UInt16GetDatum(), and values.
PG_FUNCTION_INFO_V1 | ( | get_raw_page | ) |
PG_FUNCTION_INFO_V1 | ( | get_raw_page_1_9 | ) |
PG_FUNCTION_INFO_V1 | ( | get_raw_page_fork | ) |
PG_FUNCTION_INFO_V1 | ( | get_raw_page_fork_1_9 | ) |
PG_FUNCTION_INFO_V1 | ( | page_checksum | ) |
PG_FUNCTION_INFO_V1 | ( | page_checksum_1_9 | ) |
PG_FUNCTION_INFO_V1 | ( | page_header | ) |