Go to the source code of this file.
Data Structures | |
struct | ItemIdData |
Defines | |
#define | LP_UNUSED 0 |
#define | LP_NORMAL 1 |
#define | LP_REDIRECT 2 |
#define | LP_DEAD 3 |
#define | ItemIdGetLength(itemId) ((itemId)->lp_len) |
#define | ItemIdGetOffset(itemId) ((itemId)->lp_off) |
#define | ItemIdGetFlags(itemId) ((itemId)->lp_flags) |
#define | ItemIdGetRedirect(itemId) ((itemId)->lp_off) |
#define | ItemIdIsValid(itemId) PointerIsValid(itemId) |
#define | ItemIdIsUsed(itemId) ((itemId)->lp_flags != LP_UNUSED) |
#define | ItemIdIsNormal(itemId) ((itemId)->lp_flags == LP_NORMAL) |
#define | ItemIdIsRedirected(itemId) ((itemId)->lp_flags == LP_REDIRECT) |
#define | ItemIdIsDead(itemId) ((itemId)->lp_flags == LP_DEAD) |
#define | ItemIdHasStorage(itemId) ((itemId)->lp_len != 0) |
#define | ItemIdSetUnused(itemId) |
#define | ItemIdSetNormal(itemId, off, len) |
#define | ItemIdSetRedirect(itemId, link) |
#define | ItemIdSetDead(itemId) |
#define | ItemIdMarkDead(itemId) |
Typedefs | |
typedef struct ItemIdData | ItemIdData |
typedef ItemIdData * | ItemId |
typedef uint16 | ItemOffset |
typedef uint16 | ItemLength |
#define ItemIdGetFlags | ( | itemId | ) | ((itemId)->lp_flags) |
Definition at line 70 of file itemid.h.
Referenced by heap_page_items().
#define ItemIdGetLength | ( | itemId | ) | ((itemId)->lp_len) |
Definition at line 58 of file itemid.h.
Referenced by _bt_buildadd(), _bt_findsplitloc(), _bt_newroot(), _bt_split(), acquire_sample_rows(), bitgetpage(), BitmapHeapNext(), btree_xlog_split(), GetTupleForTrigger(), heap_delete(), heap_fetch(), heap_get_latest_tid(), heap_hot_search_buffer(), heap_inplace_update(), heap_lock_tuple(), heap_page_items(), heap_update(), heap_xlog_inplace(), heapgetpage(), heapgettup(), heapgettup_pagemode(), lazy_scan_heap(), PageIndexMultiDelete(), PageIndexTupleDelete(), PageRepairFragmentation(), pgstat_index_page(), and read_seq_tuple().
#define ItemIdGetOffset | ( | itemId | ) | ((itemId)->lp_off) |
Definition at line 64 of file itemid.h.
Referenced by heap_page_items(), PageIndexMultiDelete(), PageIndexTupleDelete(), and PageRepairFragmentation().
#define ItemIdGetRedirect | ( | itemId | ) | ((itemId)->lp_off) |
Definition at line 77 of file itemid.h.
Referenced by btree_xlog_delete_get_latestRemovedXid(), heap_get_root_tuples(), heap_hot_search_buffer(), and heap_prune_chain().
#define ItemIdHasStorage | ( | itemId | ) | ((itemId)->lp_len != 0) |
Definition at line 119 of file itemid.h.
Referenced by btree_xlog_delete_get_latestRemovedXid(), heap_page_items(), PageAddItem(), PageIndexMultiDelete(), PageIndexTupleDelete(), and PageRepairFragmentation().
#define ItemIdIsDead | ( | itemId | ) | ((itemId)->lp_flags == LP_DEAD) |
Definition at line 112 of file itemid.h.
Referenced by _bt_check_unique(), _bt_checkkeys(), _bt_vacuum_one_page(), acquire_sample_rows(), btree_xlog_delete_get_latestRemovedXid(), GetBTPageStatistics(), hashgetbitmap(), hashgettuple(), heap_get_root_tuples(), heap_page_is_all_visible(), heap_page_prune(), heap_prune_chain(), lazy_scan_heap(), and pgstat_index_page().
#define ItemIdIsNormal | ( | itemId | ) | ((itemId)->lp_flags == LP_NORMAL) |
Definition at line 98 of file itemid.h.
Referenced by acquire_sample_rows(), bitgetpage(), BitmapHeapNext(), GetTupleForTrigger(), heap_delete(), heap_fetch(), heap_get_latest_tid(), heap_get_root_tuples(), heap_hot_search_buffer(), heap_inplace_update(), heap_lock_tuple(), heap_page_is_all_visible(), heap_prune_chain(), heap_update(), heap_xlog_delete(), heap_xlog_inplace(), heap_xlog_lock(), heap_xlog_lock_updated(), heap_xlog_update(), heapgetpage(), heapgettup(), heapgettup_pagemode(), lazy_check_needs_freeze(), lazy_scan_heap(), and read_seq_tuple().
#define ItemIdIsRedirected | ( | itemId | ) | ((itemId)->lp_flags == LP_REDIRECT) |
Definition at line 105 of file itemid.h.
Referenced by btree_xlog_delete_get_latestRemovedXid(), heap_get_root_tuples(), heap_hot_search_buffer(), heap_page_is_all_visible(), heap_prune_chain(), and lazy_scan_heap().
#define ItemIdIsUsed | ( | itemId | ) | ((itemId)->lp_flags != LP_UNUSED) |
Definition at line 91 of file itemid.h.
Referenced by btree_xlog_delete_get_latestRemovedXid(), count_nondeletable_pages(), heap_get_root_tuples(), heap_page_is_all_visible(), heap_page_prune(), heap_prune_chain(), lazy_scan_heap(), PageAddItem(), PageGetHeapFreeSpace(), and PageRepairFragmentation().
#define ItemIdIsValid | ( | itemId | ) | PointerIsValid(itemId) |
Definition at line 85 of file itemid.h.
Referenced by bt_page_items().
#define ItemIdMarkDead | ( | itemId | ) |
( \ (itemId)->lp_flags = LP_DEAD \ )
Definition at line 178 of file itemid.h.
Referenced by _bt_check_unique(), _bt_killitems(), and hashgettuple().
#define ItemIdSetDead | ( | itemId | ) |
( \ (itemId)->lp_flags = LP_DEAD, \ (itemId)->lp_off = 0, \ (itemId)->lp_len = 0 \ )
Definition at line 163 of file itemid.h.
Referenced by heap_page_prune_execute().
#define ItemIdSetNormal | ( | itemId, | ||
off, | ||||
len | ||||
) |
( \ (itemId)->lp_flags = LP_NORMAL, \ (itemId)->lp_off = (off), \ (itemId)->lp_len = (len) \ )
Definition at line 139 of file itemid.h.
Referenced by PageAddItem().
#define ItemIdSetRedirect | ( | itemId, | ||
link | ||||
) |
( \ (itemId)->lp_flags = LP_REDIRECT, \ (itemId)->lp_off = (link), \ (itemId)->lp_len = 0 \ )
Definition at line 151 of file itemid.h.
Referenced by heap_page_prune_execute().
#define ItemIdSetUnused | ( | itemId | ) |
( \ (itemId)->lp_flags = LP_UNUSED, \ (itemId)->lp_off = 0, \ (itemId)->lp_len = 0 \ )
Definition at line 127 of file itemid.h.
Referenced by _bt_buildadd(), heap_page_prune_execute(), lazy_vacuum_page(), and PageRepairFragmentation().
typedef ItemIdData* ItemId |
typedef struct ItemIdData ItemIdData |
typedef uint16 ItemLength |
typedef uint16 ItemOffset |