Make plancache store cursor options so it can pass them to planner during
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/prepare.c | modified | +4 −1 |
| src/backend/executor/spi.c | modified | +2 −1 |
| src/backend/tcop/postgres.c | modified | +3 −1 |
| src/backend/utils/cache/plancache.c | modified | +9 −6 |
| src/include/commands/prepare.h | modified | +2 −1 |
| src/include/utils/plancache.h | modified | +4 −1 |