Re: Define variable only in the scope that needs it

2018-03-20 Thread Robert Haas
On Tue, Mar 20, 2018 at 7:11 AM, Antonin Houska wrote: > I suppose the current definition in the higher scope is not intentional. This > is what I suggest: This is moot in light of commit 4f15e5d09de276fb77326be5567dd9796008ca2e. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Ente

Define variable only in the scope that needs it

2018-03-20 Thread Antonin Houska
I suppose the current definition in the higher scope is not intentional. This is what I suggest: diff --git a/src/backend/optimizer/plan/planner.c b/src/backend/optimizer/plan/planner.c new file mode 100644 index 9c4a1ba..ae35e1e *** a/src/backend/optimizer/plan/planner.c --- b/src/backend/optimi