Michael Meskes wrote:
>
> - and check resp. tell me whether the cursor behaviour is correct. Currently
> the declare statement is send to the backend via PQexec. The open statement
> is ignored and the fetch is executed as fetch via PQexec. I think the data
> shouldn't be processed before the cursor is opened. But I do not know
> what PostgreSQL does with the declare command.
DECLARE: parser + optimizer + ExecutorStart (initializes plan nodes:
checks permissions, opens tables & indices).
Is OPEN statement in standard ?
If yes then we could call ExecutorStart() for the OPEN someday.
Vadim