diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2008-10-09 19:27:40 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2008-10-09 19:27:40 +0000 |
| commit | 76e6602417a00a3b3706dd46e4564c8aa4feda70 (patch) | |
| tree | e89b8e1aa5b8cf001124f03c5f0572f6b81091d5 /src/backend/optimizer/prep/prepjointree.c | |
| parent | cbe99a97a8343c36ff7d9ce37381edd75c19e47b (diff) | |
Improve the recently-added code for inlining set-returning functions so that
it can handle functions returning setof record. The case was left undone
originally, but it turns out to be simple to fix.
Diffstat (limited to 'src/backend/optimizer/prep/prepjointree.c')
| -rw-r--r-- | src/backend/optimizer/prep/prepjointree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/optimizer/prep/prepjointree.c b/src/backend/optimizer/prep/prepjointree.c index 21bd8332f4a..1c73c57dadf 100644 --- a/src/backend/optimizer/prep/prepjointree.c +++ b/src/backend/optimizer/prep/prepjointree.c @@ -16,7 +16,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/optimizer/prep/prepjointree.c,v 1.55 2008/10/04 21:56:53 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/optimizer/prep/prepjointree.c,v 1.56 2008/10/09 19:27:40 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -383,7 +383,7 @@ inline_set_returning_functions(PlannerInfo *root) Query *funcquery; /* Check safety of expansion, and expand if possible */ - funcquery = inline_set_returning_function(root, rte->funcexpr); + funcquery = inline_set_returning_function(root, rte); if (funcquery) { /* Successful expansion, replace the rtable entry */ |
