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.
Functions | |
static bytea * | get_raw_page_internal (text *relname, ForkNumber forknum, BlockNumber blkno) |
PG_FUNCTION_INFO_V1 (get_raw_page) | |
Datum | get_raw_page (PG_FUNCTION_ARGS) |
PG_FUNCTION_INFO_V1 (get_raw_page_fork) | |
Datum | get_raw_page_fork (PG_FUNCTION_ARGS) |
Page | get_page_from_raw (bytea *raw_page) |
PG_FUNCTION_INFO_V1 (page_header) | |
Datum | page_header (PG_FUNCTION_ARGS) |
PG_FUNCTION_INFO_V1 (page_checksum) | |
Datum | page_checksum (PG_FUNCTION_ARGS) |
Variables | |
PG_MODULE_MAGIC | |
Definition at line 187 of file rawpage.c.
References ereport, errcode(), errdetail(), errmsg(), ERROR, page_header(), palloc(), PG_FUNCTION_INFO_V1(), VARDATA_ANY, and VARSIZE_ANY_EXHDR.
Referenced by gin_leafpage_items(), gin_metapage_info(), gin_page_opaque_info(), and verify_hash_page().
Datum get_raw_page | ( | PG_FUNCTION_ARGS | ) |
Definition at line 46 of file rawpage.c.
References ereport, errhint(), errmsg(), ERROR, get_raw_page_fork(), get_raw_page_internal(), MAIN_FORKNUM, PG_FUNCTION_INFO_V1(), PG_GETARG_TEXT_PP, PG_GETARG_UINT32, PG_NARGS, PG_RETURN_BYTEA_P, and relname.
Datum get_raw_page_fork | ( | PG_FUNCTION_ARGS | ) |
Definition at line 75 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().
Referenced by get_raw_page().
|
static |
Definition at line 94 of file rawpage.c.
References AccessShareLock, buf, BUFFER_LOCK_SHARE, BUFFER_LOCK_UNLOCK, BufferGetPage, ereport, errcode(), errmsg(), ERROR, LockBuffer(), makeRangeVarFromNameList(), palloc(), RBM_NORMAL, RelationData::rd_rel, ReadBufferExtended(), relation_close(), RELATION_IS_OTHER_TEMP, relation_openrv(), RelationGetNumberOfBlocksInFork(), RelationGetRelationName, ReleaseBuffer(), SET_VARSIZE, superuser(), textToQualifiedNameList(), VARDATA, and VARHDRSZ.
Referenced by get_raw_page(), and get_raw_page_fork().
Datum page_checksum | ( | PG_FUNCTION_ARGS | ) |
Definition at line 298 of file rawpage.c.
References ereport, errcode(), errmsg(), ERROR, pg_checksum_page(), PG_GETARG_BYTEA_P, PG_GETARG_INT32, PG_RETURN_INT16, superuser(), VARDATA, VARHDRSZ, and VARSIZE.
Referenced by page_header().
Datum page_header | ( | PG_FUNCTION_ARGS | ) |
Definition at line 218 of file rawpage.c.
References atttypid, CStringGetTextDatum, elog, ereport, errcode(), errmsg(), ERROR, get_call_result_type(), heap_form_tuple(), HeapTupleGetDatum, LSNGetDatum, page_checksum(), PageGetLSN, PageGetPageLayoutVersion, PageGetPageSize, PageHeaderData::pd_checksum, PageHeaderData::pd_flags, PageHeaderData::pd_lower, PageHeaderData::pd_prune_xid, PageHeaderData::pd_special, PageHeaderData::pd_upper, PG_FUNCTION_INFO_V1(), PG_GETARG_BYTEA_P, PG_RETURN_DATUM, SizeOfPageHeaderData, snprintf, superuser(), TransactionIdGetDatum, TupleDescAttr, TYPEFUNC_COMPOSITE, UInt16GetDatum, values, VARDATA, VARHDRSZ, and VARSIZE.
Referenced by get_page_from_raw().
PG_FUNCTION_INFO_V1 | ( | get_raw_page | ) |
Referenced by get_page_from_raw(), get_raw_page(), and page_header().
PG_FUNCTION_INFO_V1 | ( | get_raw_page_fork | ) |
PG_FUNCTION_INFO_V1 | ( | page_header | ) |
PG_FUNCTION_INFO_V1 | ( | page_checksum | ) |