From 565736609d3e883d0b9a2d496a4e8c76ef73d279 Mon Sep 17 00:00:00 2001 From: Alexander Korotkov Date: Tue, 9 May 2023 17:04:12 +0300 Subject: [PATCH] pgindent run --- include/recovery/wal.h | 2 +- src/btree/check.c | 4 ++-- src/btree/iterator.c | 4 ++-- src/catalog/o_sys_cache.c | 4 ++-- src/orioledb.c | 4 ++-- src/recovery/wal.c | 2 +- src/tableam/handler.c | 2 +- src/tableam/index_scan.c | 2 +- src/tableam/scan.c | 20 ++++++++++---------- 9 files changed, 22 insertions(+), 22 deletions(-) diff --git a/include/recovery/wal.h b/include/recovery/wal.h index 12900d31..245a5314 100644 --- a/include/recovery/wal.h +++ b/include/recovery/wal.h @@ -38,7 +38,7 @@ typedef struct { uint8 recType; -} WALRec; +} WALRec; typedef struct { diff --git a/src/btree/check.c b/src/btree/check.c index 31b48702..c98bf58e 100644 --- a/src/btree/check.c +++ b/src/btree/check.c @@ -179,7 +179,7 @@ check_btree(BTreeDescr *desc, bool force_file_check) if (map_extents.size != 0) { bool sorted = is_compressed ? is_sorted_by_len_off(&map_extents) - : is_sorted_by_off(&map_extents); + : is_sorted_by_off(&map_extents); if (!sorted) { @@ -193,7 +193,7 @@ check_btree(BTreeDescr *desc, bool force_file_check) if (tmp_extents.size != 0) { bool sorted = is_compressed ? is_sorted_by_len_off(&tmp_extents) - : is_sorted_by_off(&tmp_extents); + : is_sorted_by_off(&tmp_extents); if (!sorted) { diff --git a/src/btree/iterator.c b/src/btree/iterator.c index 170c9a6a..a4c809ff 100644 --- a/src/btree/iterator.c +++ b/src/btree/iterator.c @@ -270,8 +270,8 @@ o_find_tuple_version(BTreeDescr *desc, Page p, BTreePageItemLocator *loc, bool version_check = !txIsFinished; OXid tupOxid = version_check ? XACT_INFO_GET_OXID(xactInfo) : InvalidOXid; TupleFetchCallbackCheckType check_type = version_check ? - OTupleFetchCallbackVersionCheck : - OTupleFetchCallbackKeyCheck; + OTupleFetchCallbackVersionCheck : + OTupleFetchCallbackKeyCheck; cbResult = cb(curTuple, tupOxid, csn, arg, check_type); diff --git a/src/catalog/o_sys_cache.c b/src/catalog/o_sys_cache.c index 711ebef3..6893921c 100644 --- a/src/catalog/o_sys_cache.c +++ b/src/catalog/o_sys_cache.c @@ -1732,7 +1732,7 @@ o_sys_cache_toast_cmp(BTreeDescr *desc, void *p1, BTreeKeyType k1, else { OSysCacheToastChunkKey *chunk_key = - ((OSysCacheToastChunkKey *) ((OTuple *) p1)->data); + ((OSysCacheToastChunkKey *) ((OTuple *) p1)->data); key1 = &chunk_key->sys_cache_key; offset1 = chunk_key->common.offset; @@ -1762,7 +1762,7 @@ o_sys_cache_toast_cmp(BTreeDescr *desc, void *p1, BTreeKeyType k1, else { OSysCacheToastChunkKey *chunk_key = - ((OSysCacheToastChunkKey *) ((OTuple *) p2)->data); + ((OSysCacheToastChunkKey *) ((OTuple *) p2)->data); key2 = &chunk_key->sys_cache_key; offset2 = chunk_key->common.offset; diff --git a/src/orioledb.c b/src/orioledb.c index ee244b48..f11c2475 100644 --- a/src/orioledb.c +++ b/src/orioledb.c @@ -1393,8 +1393,8 @@ orioledb_get_relation_info_hook(PlannerInfo *rootPageBlkno, { Oid typeoid = primary->fields[i].inputtype; bool valid = typeoid == INT4OID || - typeoid == INT8OID || - typeoid == TIDOID; + typeoid == INT8OID || + typeoid == TIDOID; hasbitmap = hasbitmap && valid; } diff --git a/src/recovery/wal.c b/src/recovery/wal.c index 111516f0..2003195f 100644 --- a/src/recovery/wal.c +++ b/src/recovery/wal.c @@ -256,7 +256,7 @@ add_rel_wal_record(ORelOids oids, OIndexType type) void add_o_tables_meta_lock_wal_record(void) { - WALRec *rec; + WALRec *rec; Assert(!is_recovery_process()); flush_local_wal_if_needed(sizeof(*rec)); diff --git a/src/tableam/handler.c b/src/tableam/handler.c index 32176bbb..57ee0a8a 100644 --- a/src/tableam/handler.c +++ b/src/tableam/handler.c @@ -450,7 +450,7 @@ orioledb_tuple_update(Relation relation, Datum tupleid, TupleTableSlot *slot, int options, TM_FailureData *tmfd, LockTupleMode *lockmode, #if PG_VERSION_NUM >= 160000 - TU_UpdateIndexes * update_indexes, + TU_UpdateIndexes *update_indexes, #else bool *update_indexes, #endif diff --git a/src/tableam/index_scan.c b/src/tableam/index_scan.c index 115248ce..f203b743 100644 --- a/src/tableam/index_scan.c +++ b/src/tableam/index_scan.c @@ -340,7 +340,7 @@ o_exec_fetch(OScanState *ostate, ScanState *ss, CommitSeqNo csn) TupleTableSlot *slot; OTuple tuple; bool scan_primary = ostate->ixNum == PrimaryIndexNumber || - !ostate->onlyCurIx; + !ostate->onlyCurIx; MemoryContext tupleCxt = ss->ss_ScanTupleSlot->tts_mcxt; do diff --git a/src/tableam/scan.c b/src/tableam/scan.c index af0be6c8..c36d5f1a 100644 --- a/src/tableam/scan.c +++ b/src/tableam/scan.c @@ -541,7 +541,7 @@ o_create_custom_scan_state(CustomScan *cscan) if (plan_tag == O_IndexPlan) { OIndexPlanState *ix_plan_state = - (OIndexPlanState *) palloc0(sizeof(OIndexPlanState)); + (OIndexPlanState *) palloc0(sizeof(OIndexPlanState)); ix_plan_state->ostate.ixNum = intVal(lthird(cscan->custom_private)); ix_plan_state->ostate.scanDir = intVal(lfourth(cscan->custom_private)); @@ -579,7 +579,7 @@ o_create_custom_scan_state(CustomScan *cscan) else if (plan_tag == O_BitmapHeapPlan) { OBitmapHeapPlanState *bitmap_state = - (OBitmapHeapPlanState *) palloc0(sizeof(OBitmapHeapPlanState)); + (OBitmapHeapPlanState *) palloc0(sizeof(OBitmapHeapPlanState)); BitmapHeapScan *bh_scan = (BitmapHeapScan *) custom_plan; bitmap_state->typeoid = intVal(lthird(cscan->custom_private)); @@ -622,7 +622,7 @@ o_begin_custom_scan(CustomScanState *node, EState *estate, int eflags) if (ocstate->o_plan_state->type == O_IndexPlan) { OIndexPlanState *ix_plan_state = - (OIndexPlanState *) ocstate->o_plan_state; + (OIndexPlanState *) ocstate->o_plan_state; OScanState *scan_state = &ix_plan_state->ostate; scan_state->csn = estate->es_snapshot->snapshotcsn; @@ -634,7 +634,7 @@ o_begin_custom_scan(CustomScanState *node, EState *estate, int eflags) else if (ocstate->o_plan_state->type == O_BitmapHeapPlan) { OBitmapHeapPlanState *bitmap_state = - (OBitmapHeapPlanState *) ocstate->o_plan_state; + (OBitmapHeapPlanState *) ocstate->o_plan_state; bitmap_state->bitmapqualplanstate = ExecInitNode(bitmap_state->bitmapqualplan, estate, eflags); @@ -679,7 +679,7 @@ o_exec_custom_scan(CustomScanState *node) if (ocstate->o_plan_state->type == O_IndexPlan) { OIndexPlanState *ix_plan_state = - (OIndexPlanState *) ocstate->o_plan_state; + (OIndexPlanState *) ocstate->o_plan_state; csn = ix_plan_state->ostate.csn; @@ -747,7 +747,7 @@ o_exec_custom_scan(CustomScanState *node) else if (ocstate->o_plan_state->type == O_BitmapHeapPlan) { OBitmapHeapPlanState *bitmap_state = - (OBitmapHeapPlanState *) ocstate->o_plan_state; + (OBitmapHeapPlanState *) ocstate->o_plan_state; if (bitmap_state->scan == NULL) { @@ -783,7 +783,7 @@ o_rescan_custom_scan(CustomScanState *node) if (ocstate->o_plan_state->type == O_IndexPlan) { OIndexPlanState *ix_plan_state = - (OIndexPlanState *) ocstate->o_plan_state; + (OIndexPlanState *) ocstate->o_plan_state; if (node->ss.ps.chgParam != NULL) { @@ -841,7 +841,7 @@ o_end_custom_scan(CustomScanState *node) else if (ocstate->o_plan_state->type == O_BitmapHeapPlan) { OBitmapHeapPlanState *bitmap_state = - (OBitmapHeapPlanState *) ocstate->o_plan_state; + (OBitmapHeapPlanState *) ocstate->o_plan_state; if (bitmap_state->bitmapqualplanstate) ExecEndNode(bitmap_state->bitmapqualplanstate); @@ -1013,7 +1013,7 @@ o_explain_custom_scan(CustomScanState *node, List *ancestors, ExplainState *es) if (ocstate->o_plan_state->type == O_IndexPlan) { OIndexPlanState *ix_plan_state = - (OIndexPlanState *) ocstate->o_plan_state; + (OIndexPlanState *) ocstate->o_plan_state; bool backward = (ix_plan_state->ostate.scanDir == BackwardScanDirection); char *direction = !backward ? "Forward" : "Backward"; @@ -1056,7 +1056,7 @@ o_explain_custom_scan(CustomScanState *node, List *ancestors, ExplainState *es) else if (ocstate->o_plan_state->type == O_BitmapHeapPlan) { OBitmapHeapPlanState *bitmap_state = - (OBitmapHeapPlanState *) ocstate->o_plan_state; + (OBitmapHeapPlanState *) ocstate->o_plan_state; switch (es->format) {