mirror of
https://github.com/postgres/postgres.git
synced 2025-11-03 09:13:20 +03:00
Get rid of some old and crufty global variables in the planner. When
this code was last gone over, there wasn't really any alternative to globals because we didn't have the PlannerInfo struct being passed all through the planner code. Now that we do, we can restructure things to avoid non-reentrancy. I'm fooling with this because otherwise I'd have had to add another global variable for the planned compact range table list.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/nodes/nodes.h,v 1.194 2007/02/03 14:06:55 petere Exp $
|
||||
* $PostgreSQL: pgsql/src/include/nodes/nodes.h,v 1.195 2007/02/19 07:03:31 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -175,6 +175,7 @@ typedef enum NodeTag
|
||||
* TAGS FOR PLANNER NODES (relation.h)
|
||||
*/
|
||||
T_PlannerInfo = 500,
|
||||
T_PlannerGlobal,
|
||||
T_RelOptInfo,
|
||||
T_IndexOptInfo,
|
||||
T_Path,
|
||||
@@ -198,6 +199,7 @@ typedef enum NodeTag
|
||||
T_OuterJoinInfo,
|
||||
T_InClauseInfo,
|
||||
T_AppendRelInfo,
|
||||
T_PlannerParamItem,
|
||||
|
||||
/*
|
||||
* TAGS FOR MEMORY NODES (memnodes.h)
|
||||
|
||||
Reference in New Issue
Block a user