mirror of
https://github.com/postgres/postgres.git
synced 2025-09-11 00:12:06 +03:00
First pass at set-returning-functions in FROM, by Joe Conway with
some kibitzing from Tom Lane. Not everything works yet, and there's no documentation or regression test, but let's commit this so Joe doesn't need to cope with tracking changes in so many files ...
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/subselect.c,v 1.51 2002/04/16 23:08:11 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/subselect.c,v 1.52 2002/05/12 20:10:03 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -352,13 +352,13 @@ make_subplan(SubLink *slink)
|
||||
}
|
||||
break;
|
||||
case T_Material:
|
||||
case T_FunctionScan:
|
||||
case T_Sort:
|
||||
|
||||
/*
|
||||
* Don't add another Material node if there's one
|
||||
* already, nor if the top node is a Sort, since Sort
|
||||
* materializes its output anyway. (I doubt either
|
||||
* case can happen in practice for a subplan, but...)
|
||||
* already, nor if the top node is any other type that
|
||||
* materializes its output anyway.
|
||||
*/
|
||||
use_material = false;
|
||||
break;
|
||||
@@ -686,6 +686,7 @@ SS_finalize_plan(Plan *plan)
|
||||
case T_SetOp:
|
||||
case T_Limit:
|
||||
case T_Group:
|
||||
case T_FunctionScan:
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Reference in New Issue
Block a user