From 41bd155dd656e7f17c02855be7aff234843347cd Mon Sep 17 00:00:00 2001 From: Kevin Grittner Date: Sat, 1 Apr 2017 15:21:05 -0500 Subject: Fix two undocumented parameters to functions from ENR patch. On ProcessUtility document the parameter, to match others. On CreateCachedPlan drop the queryEnv parameter. It was not referenced within the function, and had been added on the assumption that with some unknown future usage of QueryEnvironment it might be useful to do something there. We have avoided other "just in case" implementation of unused paramters, so drop it here. Per gripe from Tom Lane --- src/backend/executor/spi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/backend/executor/spi.c') diff --git a/src/backend/executor/spi.c b/src/backend/executor/spi.c index 54c022d0132..2f07a444b4d 100644 --- a/src/backend/executor/spi.c +++ b/src/backend/executor/spi.c @@ -1777,8 +1777,7 @@ _SPI_prepare_plan(const char *src, SPIPlanPtr plan) */ plansource = CreateCachedPlan(parsetree, src, - CreateCommandTag(parsetree->stmt), - _SPI_current->queryEnv); + CreateCommandTag(parsetree->stmt)); /* * Parameter datatypes are driven by parserSetup hook if provided, -- cgit v1.2.3