Refactor SPI_cursor_open/SPI_cursor_open_with_args so that the latter sets
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 1 Jun 2008 17:32:48 +0000 (17:32 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 1 Jun 2008 17:32:48 +0000 (17:32 +0000)
commitcfef6adeecc9003f3120c106fa83f40619c15d12
treefb71aa1dd8650c75096e062e29e8425d9de5f758
parent0256045826907a6c38e5a9682d01ada168238890
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