@@ -126,45 +126,45 @@ PG_FUNCTION_INFO_V1(bt_index_check);
126126PG_FUNCTION_INFO_V1 (bt_index_parent_check );
127127
128128static void bt_index_check_internal (Oid indrelid , bool parentcheck ,
129- bool heapallindexed , bool rootdescend );
129+ bool heapallindexed , bool rootdescend );
130130static inline void btree_index_checkable (Relation rel );
131131static void bt_check_every_level (Relation rel , Relation heaprel ,
132- bool heapkeyspace , bool readonly , bool heapallindexed ,
133- bool rootdescend );
132+ bool heapkeyspace , bool readonly , bool heapallindexed ,
133+ bool rootdescend );
134134static BtreeLevel bt_check_level_from_leftmost (BtreeCheckState * state ,
135- BtreeLevel level );
135+ BtreeLevel level );
136136static void bt_target_page_check (BtreeCheckState * state );
137137static BTScanInsert bt_right_page_check_scankey (BtreeCheckState * state );
138138static void bt_downlink_check (BtreeCheckState * state , BTScanInsert targetkey ,
139- BlockNumber childblock );
139+ BlockNumber childblock );
140140static void bt_downlink_missing_check (BtreeCheckState * state );
141141static void bt_tuple_present_callback (Relation index , HeapTuple htup ,
142- Datum * values , bool * isnull ,
143- bool tupleIsAlive , void * checkstate );
142+ Datum * values , bool * isnull ,
143+ bool tupleIsAlive , void * checkstate );
144144static IndexTuple bt_normalize_tuple (BtreeCheckState * state ,
145- IndexTuple itup );
145+ IndexTuple itup );
146146static bool bt_rootdescend (BtreeCheckState * state , IndexTuple itup );
147147static inline bool offset_is_negative_infinity (BTPageOpaque opaque ,
148- OffsetNumber offset );
148+ OffsetNumber offset );
149149static inline bool invariant_l_offset (BtreeCheckState * state , BTScanInsert key ,
150- OffsetNumber upperbound );
150+ OffsetNumber upperbound );
151151static inline bool invariant_leq_offset (BtreeCheckState * state ,
152- BTScanInsert key ,
153- OffsetNumber upperbound );
152+ BTScanInsert key ,
153+ OffsetNumber upperbound );
154154static inline bool invariant_g_offset (BtreeCheckState * state , BTScanInsert key ,
155- OffsetNumber lowerbound );
155+ OffsetNumber lowerbound );
156156static inline bool invariant_l_nontarget_offset (BtreeCheckState * state ,
157- BTScanInsert key ,
158- BlockNumber nontargetblock ,
159- Page nontarget ,
160- OffsetNumber upperbound );
157+ BTScanInsert key ,
158+ BlockNumber nontargetblock ,
159+ Page nontarget ,
160+ OffsetNumber upperbound );
161161static Page palloc_btree_page (BtreeCheckState * state , BlockNumber blocknum );
162162static inline BTScanInsert bt_mkscankey_pivotsearch (Relation rel ,
163- IndexTuple itup );
163+ IndexTuple itup );
164164static ItemId PageGetItemIdCareful (BtreeCheckState * state , BlockNumber block ,
165- Page page , OffsetNumber offset );
165+ Page page , OffsetNumber offset );
166166static inline ItemPointer BTreeTupleGetHeapTIDCareful (BtreeCheckState * state ,
167- IndexTuple itup , bool nonpivot );
167+ IndexTuple itup , bool nonpivot );
168168
169169/*
170170 * bt_index_check(index regclass, heapallindexed boolean)
0 commit comments