summaryrefslogtreecommitdiff
path: root/src/backend/partitioning
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/partitioning')
-rw-r--r--src/backend/partitioning/partprune.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/partitioning/partprune.c b/src/backend/partitioning/partprune.c
index 901433c68c7..f5155fe062e 100644
--- a/src/backend/partitioning/partprune.c
+++ b/src/backend/partitioning/partprune.c
@@ -775,7 +775,7 @@ gen_partprune_steps_internal(GeneratePruningStepsContext *context,
* independently, collect their step IDs to be stored in the
* combine step we'll be creating.
*/
- if (or_clause((Node *) clause))
+ if (is_orclause(clause))
{
List *arg_stepids = NIL;
bool all_args_contradictory = true;
@@ -865,7 +865,7 @@ gen_partprune_steps_internal(GeneratePruningStepsContext *context,
}
continue;
}
- else if (and_clause((Node *) clause))
+ else if (is_andclause(clause))
{
List *args = ((BoolExpr *) clause)->args;
List *argsteps,
@@ -3262,7 +3262,7 @@ match_boolean_partition_clause(Oid partopfamily, Expr *clause, Expr *partkey,
}
else
{
- bool is_not_clause = not_clause((Node *) clause);
+ bool is_not_clause = is_notclause(clause);
leftop = is_not_clause ? get_notclausearg(clause) : clause;