Skip to content

Commit

Permalink
Fix an assertion error with LATERAL caluse (#108)
Browse files Browse the repository at this point in the history
When LATERAL was used, a subquery was regarded as one generated from
EXISTS clause even though this was ordinal subquery. This caused an
assertion error.
  • Loading branch information
yugo-n authored Sep 8, 2020
1 parent 6757eb4 commit 3c0ad3b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/backend/commands/matview.c
Original file line number Diff line number Diff line change
Expand Up @@ -1626,8 +1626,11 @@ IVM_immediate_maintenance(PG_FUNCTION_ARGS)
{
int attnum;
count_colname = getColumnNameStartWith(rte, "__ivm_exists", &attnum);
use_count = true;
in_exists = true;
if (count_colname)
{
use_count = true;
in_exists = true;
}
}
}
}
Expand Down

0 comments on commit 3c0ad3b

Please sign in to comment.