Refactor SPI_cursor_open/SPI_cursor_open_with_args so that the latter sets
commit8c689c550dcaefebe495e4877ac25527d91d41be
authortgl <tgl>
Sun, 1 Jun 2008 17:32:48 +0000 (1 17:32 +0000)
committertgl <tgl>
Sun, 1 Jun 2008 17:32:48 +0000 (1 17:32 +0000)
tree8684a8d8dbf7abe413f057f1366305090dc88b8b
parent4289c4b6f978dd3e3a8e3e94d82aae4610a656c5
Refactor SPI_cursor_open/SPI_cursor_open_with_args so that the latter sets
the PARAM_FLAG_CONST flag on the parameters that are passed into the portal,
while the former's behavior is unchanged.  This should only affect the case
where the portal is executing an EXPLAIN; it will cause the generated plan to
look more like what would be generated if the portal were actually executing
the command being explained.  Per gripe from Pavel.
src/backend/executor/spi.c