Skip to content

Commit

Permalink
Enable functions in with recursive queries.
Browse files Browse the repository at this point in the history
While problematic if functions are not stable/immutable it enables standard PG logic for at least replicated tables. Otherwise recursive queries are of little use.
  • Loading branch information
yazun committed Mar 6, 2020
1 parent 71fbf34 commit 063a3ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/optimizer/plan/planner.c
Expand Up @@ -1020,6 +1020,7 @@ subquery_planner(PlannerGlobal *glob, Query *parse,
case RTE_JOIN:
case RTE_VALUES:
case RTE_CTE:
case RTE_FUNCTION:
continue;
case RTE_RELATION:
{
Expand Down

0 comments on commit 063a3ed

Please sign in to comment.