PostgreSQL Source Code  git master
off.h File Reference
#include "storage/itemid.h"
Include dependency graph for off.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define InvalidOffsetNumber   ((OffsetNumber) 0)
 
#define FirstOffsetNumber   ((OffsetNumber) 1)
 
#define MaxOffsetNumber   ((OffsetNumber) (BLCKSZ / sizeof(ItemIdData)))
 
#define OffsetNumberMask   (0xffff) /* valid uint16 bits */
 
#define OffsetNumberIsValid(offsetNumber)
 
#define OffsetNumberNext(offsetNumber)   ((OffsetNumber) (1 + (offsetNumber)))
 
#define OffsetNumberPrev(offsetNumber)   ((OffsetNumber) (-1 + (offsetNumber)))
 

Typedefs

typedef uint16 OffsetNumber
 

Macro Definition Documentation

◆ FirstOffsetNumber

#define FirstOffsetNumber   ((OffsetNumber) 1)

Definition at line 27 of file off.h.

Referenced by _hash_binsearch(), _hash_binsearch_last(), _hash_finish_split(), _hash_load_qualified_items(), _hash_splitbucket(), _hash_squeezebucket(), _hash_vacuum_one_page(), _ltree_picksplit(), acquire_sample_rows(), bernoulli_nextsampletuple(), bitgetpage(), blbulkdelete(), brin_evacuate_page(), brin_page_items(), brin_start_evacuating_page(), brininsert(), bt_page_items(), bt_page_items_bytea(), checkSplitConditions(), collect_corrupt_items(), count_nondeletable_pages(), dataFindChildPtr(), dataGetLeftMostPage(), dataLocateItem(), dataSplitPageInternal(), doPickSplit(), entryFindChildPtr(), entryGetLeftMostPage(), entryLoadMoreItems(), entryLocateEntry(), entryLocateLeafEntry(), entrySplitPage(), fallbackSplit(), fill_seq_with_data(), g_cube_picksplit(), g_int_picksplit(), g_intbig_picksplit(), gbt_num_picksplit(), gbt_var_picksplit(), genericPickSplit(), GetBTPageStatistics(), GetHashPageStatistics(), GetHashPageStats(), ghstore_picksplit(), ginbulkdelete(), ginHeapTupleFastInsert(), ginInsertBAEntries(), ginInsertCleanup(), ginNewScanKey(), GinPageDeletePostingItem(), ginRedoInsertEntry(), ginRedoInsertListPage(), ginRedoUpdateMetapage(), ginScanToDelete(), gintuple_get_attrnum(), gintuple_get_key(), ginVacuumEntryPage(), ginVacuumPostingTreeLeaves(), gist_box_picksplit(), gistBufferingFindCorrectParent(), gistbufferinginserttuples(), gistbulkdelete(), gistchoose(), gistextractpage(), gistfillbuffer(), gistFindCorrectParent(), gistFindPath(), gistformdownlink(), gistGetMaxLevel(), gistMemorizeAllDownlinks(), gistplacetopage(), gistRedoPageSplitRecord(), gistRedoPageUpdateRecord(), gistScanPage(), gistUserPicksplit(), gistvacuumpage(), gtrgm_picksplit(), gtsquery_picksplit(), gtsvector_picksplit(), hash_page_items(), hashbucketcleanup(), heap_get_root_tuples(), heap_insert(), heap_multi_insert(), heap_page_is_all_visible(), heap_page_items(), heap_page_prune(), heap_xlog_multi_insert(), heapgetpage(), heapgettup(), inet_gist_picksplit(), lazy_check_needs_freeze(), lazy_scan_heap(), log_heap_update(), ltree_picksplit(), mask_lp_flags(), moveLeafs(), moveRightIfItNeeded(), PageGetHeapFreeSpace(), PageIndexMultiDelete(), PageIndexTupleOverwrite(), PageRepairFragmentation(), pgstat_gist_page(), pgstat_hash_page(), processPendingPage(), range_gist_class_split(), range_gist_double_sorting_split(), range_gist_fallback_split(), range_gist_picksplit(), range_gist_single_sorting_split(), read_seq_tuple(), resetSpGistScanOpaque(), scanGetCandidate(), scanPendingInsert(), seq_redo(), spgdoinsert(), SpGistPageAddNewItem(), spgWalk(), statapprox_heap(), system_nextsampletuple(), system_rows_nextsampletuple(), system_time_nextsampletuple(), vacuumLeafPage(), vacuumLeafRoot(), vacuumRedirectAndPlaceholder(), and writeListPage().

◆ InvalidOffsetNumber

#define InvalidOffsetNumber   ((OffsetNumber) 0)

Definition at line 26 of file off.h.

Referenced by _bt_doinsert(), _bt_findinsertloc(), _bt_getstackbuf(), _bt_insert_parent(), _bt_insertonpg(), _bt_mark_page_halfdead(), _bt_newroot(), _bt_pgaddtup(), _bt_restore_page(), _bt_sortaddtup(), _bt_split(), _hash_pgaddmultitup(), _hash_pgaddtup(), addLeafTuple(), bernoulli_beginsamplescan(), bernoulli_nextsampletuple(), brin_doinsert(), brin_doupdate(), brin_xlog_insert_update(), brinGetTupleForHeapBlock(), btree_xlog_insert(), btree_xlog_mark_page_halfdead(), btree_xlog_split(), btree_xlog_unlink_page(), checkSplitConditions(), dataFindChildPtr(), dataPlaceToPageLeafRecompress(), doPickSplit(), entryFindChildPtr(), entryLoadMoreItems(), entrySplitPage(), fill_seq_with_data(), ginDataFillRoot(), GinDataPageAddPostingItem(), ginEntryFillRoot(), ginFillScanEntry(), ginFindLeafPage(), ginFindParents(), ginFinishSplit(), ginHeapTupleFastInsert(), ginRedoInsertEntry(), ginRedoInsertListPage(), ginRedoRecompress(), ginRedoUpdateMetapage(), ginVacuumPostingTreeLeaves(), gistBufferingFindCorrectParent(), gistbufferinginserttuples(), gistdoinsert(), gistfillbuffer(), gistFindCorrectParent(), gistFindPath(), gistfinishsplit(), gistnospace(), gistplacetopage(), gistProcessItup(), gistRedoPageUpdateRecord(), gistUserPicksplit(), hash_xlog_insert(), hash_xlog_move_page_contents(), hash_xlog_squeeze_page(), heap_prune_chain(), heap_xlog_insert(), heap_xlog_multi_insert(), heap_xlog_update(), keyGetItem(), moveLeafs(), PageAddItemExtended(), raw_heap_insert(), RelationPutHeapTuple(), scanGetItem(), seq_redo(), spgAddNodeAction(), spgdoinsert(), spgFormDeadTuple(), spgFormLeafTuple(), SpGistPageAddNewItem(), spgMatchNodeAction(), spgRedoAddLeaf(), spgRedoAddNode(), spgRedoPickSplit(), spgRedoVacuumLeaf(), spgRedoVacuumRedirect(), spgWalk(), startScanEntry(), system_beginsamplescan(), system_nextsampletuple(), system_rows_beginsamplescan(), system_rows_nextsampletuple(), system_time_beginsamplescan(), system_time_nextsampletuple(), vacuumLeafPage(), vacuumRedirectAndPlaceholder(), and writeListPage().

◆ MaxOffsetNumber

◆ OffsetNumberIsValid

#define OffsetNumberIsValid (   offsetNumber)
Value:
((bool) ((offsetNumber != InvalidOffsetNumber) && \
(offsetNumber <= MaxOffsetNumber)))
#define MaxOffsetNumber
Definition: off.h:28
char bool
Definition: c.h:247
#define InvalidOffsetNumber
Definition: off.h:26

Definition at line 40 of file off.h.

Referenced by _hash_binsearch(), _hash_binsearch_last(), ginPostingListDecodeAllSegments(), gistfixsplit(), gistplacetopage(), heap_prune_chain(), IndexBuildHeapRangeScan(), PageAddItemExtended(), tablesample_getnext(), and validate_index_heapscan().

◆ OffsetNumberMask

#define OffsetNumberMask   (0xffff) /* valid uint16 bits */

Definition at line 29 of file off.h.

◆ OffsetNumberNext

#define OffsetNumberNext (   offsetNumber)    ((OffsetNumber) (1 + (offsetNumber)))

Definition at line 53 of file off.h.

Referenced by _bt_buildadd(), _bt_check_unique(), _bt_findsplitloc(), _bt_getstackbuf(), _bt_killitems(), _bt_mark_page_halfdead(), _bt_readpage(), _bt_slideleft(), _bt_split(), _bt_vacuum_one_page(), _hash_finish_split(), _hash_kill_items(), _hash_load_qualified_items(), _hash_splitbucket(), _hash_squeezebucket(), _hash_vacuum_one_page(), _ltree_picksplit(), bitgetpage(), blbulkdelete(), brin_page_items(), bt_downlink_check(), bt_right_page_check_scankey(), bt_target_page_check(), btree_xlog_mark_page_halfdead(), btree_xlog_split(), btvacuumpage(), collect_corrupt_items(), count_nondeletable_pages(), entryLoadMoreItems(), fallbackSplit(), g_cube_picksplit(), g_int_picksplit(), g_intbig_picksplit(), gbt_num_picksplit(), gbt_var_picksplit(), genericPickSplit(), ghstore_picksplit(), ginHeapTupleFastInsert(), ginRedoUpdateMetapage(), gintuple_get_key(), gist_box_picksplit(), gistBufferingFindCorrectParent(), gistbulkdelete(), gistchoose(), gistextractpage(), gistfillbuffer(), gistFindCorrectParent(), gistFindPath(), gistformdownlink(), gistRedoPageUpdateRecord(), gistScanPage(), gistvacuumpage(), gtrgm_picksplit(), gtsquery_picksplit(), gtsvector_picksplit(), hashbucketcleanup(), heap_get_root_tuples(), heap_page_is_all_visible(), heap_page_prune(), heapgettup(), inet_gist_picksplit(), lazy_check_needs_freeze(), lazy_scan_heap(), ltree_picksplit(), mask_lp_flags(), PageAddItemExtended(), PageGetHeapFreeSpace(), PageIndexMultiDelete(), pgstat_index_page(), processPendingPage(), range_gist_class_split(), range_gist_double_sorting_split(), range_gist_picksplit(), range_gist_single_sorting_split(), and statapprox_heap().

◆ OffsetNumberPrev

#define OffsetNumberPrev (   offsetNumber)    ((OffsetNumber) (-1 + (offsetNumber)))

Typedef Documentation

◆ OffsetNumber

Definition at line 24 of file off.h.