diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-04-16 18:21:07 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-04-16 18:21:07 +0000 |
commit | 42dc4b66e61cde4beb466561f12fd490b6621ee3 (patch) | |
tree | 146638f3bd5eee533041e4f534b1a612a2dc7a13 /src/backend/tcop/postgres.c | |
parent | f01b1965971ddd3345d3e44e00d0d735a49b75d1 (diff) | |
download | postgresql-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/tcop/postgres.c')
-rw-r--r-- | src/backend/tcop/postgres.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 7722eddf347..acf12dae6f1 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.531 2007/04/16 01:14:57 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.532 2007/04/16 18:21:07 tgl Exp $ * * NOTES * this is the "main" module of the postgres backend and @@ -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, |