We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70c064d commit e37bec3Copy full SHA for e37bec3
src/pg_pathman.c
@@ -1203,7 +1203,8 @@ pull_var_param(const WalkerContext *ctx,
1203
(Var *) ((RelabelType *) left)->arg;
1204
1205
/* Check if 'v' is partitioned column of 'prel' */
1206
- if (v->varoattno == ctx->prel->attnum &&
+ /* FIX this */
1207
+ if (v->varoattno == 0 &&
1208
v->varno == ctx->prel_varno)
1209
{
1210
*var_ptr = left;
@@ -1220,7 +1221,8 @@ pull_var_param(const WalkerContext *ctx,
1220
1221
(Var *) ((RelabelType *) right)->arg;
1222
1223
1224
1225
1226
1227
1228
*var_ptr = right;
0 commit comments