summaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorTom Lane2007-04-16 18:21:07 +0000
committerTom Lane2007-04-16 18:21:07 +0000
commit7b897b8aaf798acc33756f7034eedb4feee5efac (patch)
tree189f45e096ad5f92263845541a1a45f410fb1535 /src/backend/tcop/postgres.c
parentf2464a7112725e792220f128b2d7af7cb091b810 (diff)
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/tcop/postgres.c')
-rw-r--r--src/backend/tcop/postgres.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index 030f73eec9..405f004e2b 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -1237,6 +1237,7 @@ exec_parse_message(const char *query_string, /* string to execute */
commandTag,
paramTypes,
numParams,
+ 0, /* default cursor options */
stmt_list,
false);
}
@@ -1261,6 +1262,7 @@ exec_parse_message(const char *query_string, /* string to execute */
commandTag,
newParamTypes,
numParams,
+ 0, /* cursor options */
stmt_list,
fully_planned,
true,