aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/spi.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-04-16 18:21:07 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-04-16 18:21:07 +0000
commit42dc4b66e61cde4beb466561f12fd490b6621ee3 (patch)
tree146638f3bd5eee533041e4f534b1a612a2dc7a13 /src/backend/executor/spi.c
parentf01b1965971ddd3345d3e44e00d0d735a49b75d1 (diff)
downloadpostgresql-42dc4b66e61cde4beb466561f12fd490b6621ee3.tar.gz
postgresql-42dc4b66e61cde4beb466561f12fd490b6621ee3.zip
Make plancache store cursor options so it can pass them to planner during
a replan. I had originally thought this was not necessary, but the new SPI facilities create a path whereby queries planned with non-default options can get into the cache, so it is necessary.
Diffstat (limited to 'src/backend/executor/spi.c')
-rw-r--r--src/backend/executor/spi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/executor/spi.c b/src/backend/executor/spi.c
index e0c11b7b13b..0a5625a0c58 100644
--- a/src/backend/executor/spi.c
+++ b/src/backend/executor/spi.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/executor/spi.c,v 1.177 2007/04/16 17:21:23 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/executor/spi.c,v 1.178 2007/04/16 18:21:07 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -2032,6 +2032,7 @@ _SPI_save_plan(SPIPlanPtr plan)
plansource->commandTag,
newplan->argtypes,
newplan->nargs,
+ newplan->cursor_options,
cplan->stmt_list,
true,
false);