|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "access/brin_internal.h"#include "access/brin_page.h"#include "access/brin_tuple.h"#include "access/htup_details.h"#include "catalog/pg_am_d.h"#include "catalog/pg_type.h"#include "funcapi.h"#include "lib/stringinfo.h"#include "miscadmin.h"#include "pageinspect.h"#include "utils/builtins.h"#include "utils/lsyscache.h"#include "utils/rel.h"
Go to the source code of this file.
Data Structures | |
| struct | brin_column_state |
Macros | |
| #define | IS_BRIN(r) ((r)->rd_rel->relam == BRIN_AM_OID) |
| #define | BRIN_PAGE_ITEMS_V1_12 8 |
Typedefs | |
| typedef struct brin_column_state | brin_column_state |
| #define BRIN_PAGE_ITEMS_V1_12 8 |
Definition at line 121 of file brinfuncs.c.
| #define IS_BRIN | ( | r | ) | ((r)->rd_rel->relam == BRIN_AM_OID) |
Definition at line 31 of file brinfuncs.c.
| Datum brin_metapage_info | ( | PG_FUNCTION_ARGS | ) |
Definition at line 343 of file brinfuncs.c.
References BlessTupleDesc(), BRIN_PAGETYPE_META, BrinMetaPageData::brinMagic, BrinMetaPageData::brinVersion, CStringGetTextDatum, elog, ereport, errcode(), errmsg(), ERROR, fb(), get_call_result_type(), heap_form_tuple(), HeapTupleGetDatum(), Int32GetDatum(), Int64GetDatum(), BrinMetaPageData::lastRevmapPage, PageGetContents(), PageIsNew(), BrinMetaPageData::pagesPerRange, PG_GETARG_BYTEA_P, PG_RETURN_DATUM, PG_RETURN_NULL, psprintf(), superuser(), TYPEFUNC_COMPOSITE, values, and verify_brin_page().
| Datum brin_page_items | ( | PG_FUNCTION_ARGS | ) |
Definition at line 129 of file brinfuncs.c.
References AccessShareLock, appendStringInfoChar(), appendStringInfoString(), BoolGetDatum(), brin_build_desc(), brin_deform_tuple(), brin_free_desc(), BRIN_PAGE_ITEMS_V1_12, BRIN_PAGETYPE_REGULAR, CStringGetTextDatum, StringInfoData::data, elog, ereport, errcode(), errhint(), errmsg(), ERROR, fb(), FirstOffsetNumber, fmgr_info(), getTypeOutputInfo(), i, index_close(), index_open(), InitMaterializedSRF(), initStringInfo(), Int64GetDatum(), IS_BRIN, ItemIdIsUsed, brin_column_state::nstored, OffsetNumberNext, output, OutputFunctionCall(), PageGetItem(), PageGetItemId(), PageGetMaxOffsetNumber(), PageIsNew(), palloc(), palloc_array, pfree(), PG_GETARG_BYTEA_P, PG_GETARG_OID, PG_RETURN_NULL, RelationGetDescr, RelationGetRelationName, superuser(), TupleDescAttr(), tuplestore_putvalues(), UInt16GetDatum(), UInt32GetDatum(), val, values, and verify_brin_page().
| Datum brin_page_type | ( | PG_FUNCTION_ARGS | ) |
Definition at line 44 of file brinfuncs.c.
References BRIN_PAGETYPE_META, BRIN_PAGETYPE_REGULAR, BRIN_PAGETYPE_REVMAP, BrinPageType, cstring_to_text(), ereport, errcode(), errdetail(), errmsg(), ERROR, fb(), get_page_from_raw(), MAXALIGN, PageGetSpecialSize(), PageIsNew(), PG_GETARG_BYTEA_P, PG_RETURN_NULL, PG_RETURN_TEXT_P, psprintf(), superuser(), and type.
| Datum brin_revmap_data | ( | PG_FUNCTION_ARGS | ) |
Definition at line 384 of file brinfuncs.c.
References BRIN_PAGETYPE_REVMAP, ereport, errcode(), errmsg(), ERROR, fb(), idx(), MemoryContextSwitchTo(), PageGetContents(), PageIsNew(), palloc(), PG_GETARG_BYTEA_P, PG_RETURN_NULL, PointerGetDatum(), REVMAP_PAGE_MAXITEMS, SRF_FIRSTCALL_INIT, SRF_IS_FIRSTCALL, SRF_PERCALL_SETUP, SRF_RETURN_DONE, SRF_RETURN_NEXT, superuser(), and verify_brin_page().
| PG_FUNCTION_INFO_V1 | ( | brin_metapage_info | ) |
| PG_FUNCTION_INFO_V1 | ( | brin_page_items | ) |
| PG_FUNCTION_INFO_V1 | ( | brin_page_type | ) |
| PG_FUNCTION_INFO_V1 | ( | brin_revmap_data | ) |
Definition at line 93 of file brinfuncs.c.
References BrinPageType, ereport, errcode(), errdetail(), errmsg(), ERROR, fb(), get_page_from_raw(), MAXALIGN, PageGetSpecialSize(), PageIsNew(), and type.
Referenced by brin_metapage_info(), brin_page_items(), and brin_revmap_data().