Skip to content

Commit

Permalink
clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
ezra-varady committed Oct 2, 2023
1 parent 0b410e7 commit 4166832
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/hooks/op_rewrite.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
#include <catalog/pg_amproc.h>
#include <catalog/pg_opclass.h>
#include <commands/defrem.h>
#include <miscadmin.h>
#include <nodes/nodeFuncs.h>
#include <parser/parsetree.h>
#include <stdbool.h>
#include <stdint.h>
#include <utils/rel.h>
#include <utils/syscache.h>
#include <stdint.h>
#include <miscadmin.h>

#include "plan_tree_walker.h"
#include "utils.h"
Expand Down Expand Up @@ -182,9 +182,9 @@ static Node *operator_rewriting_mutator(Node *node, void *ctx)
ListCell *lc;
foreach(lc, context->indices) {
uintptr_t intermediate = (uintptr_t)lfirst(lc);
Oid indexid = (Oid)intermediate;
Relation index = index_open(indexid, AccessShareLock);
Oid indexfunc = get_func_id_from_index(index);
Oid indexid = (Oid)intermediate;
Relation index = index_open(indexid, AccessShareLock);
Oid indexfunc = get_func_id_from_index(index);
if(OidIsValid(indexfunc)) {
FuncExpr *fnExpr = makeNode(FuncExpr);
fnExpr->funcresulttype = opExpr->opresulttype;
Expand Down Expand Up @@ -234,7 +234,8 @@ static Node *operator_rewriting_mutator(Node *node, void *ctx)
return (Node *)seqscan;
}

// todo:: there is a function called query_or_expression_tree_mutator that might be able to replace the custom plan tree handling
// todo:: there is a function called query_or_expression_tree_mutator that might be able to replace the custom plan
// tree handling
if(is_plan_node(node)) {
return (Node *)plan_tree_mutator((Plan *)node, ctx);
} else {
Expand Down

0 comments on commit 4166832

Please sign in to comment.