Re: [HACKERS] ecpg stuff

Vadim Mikheev <vadim@sable.krasnoyarsk.su>

From: "Vadim B. Mikheev" <vadim@sable.krasnoyarsk.su>
To: Michael Meskes <meskes@topsystem.de>
Cc: "Thomas G. Lockhart" <lockhart@alumni.caltech.edu>, PostgreSQL Hacker <pgsql-hackers@postgreSQL.org>
Date: 1998-02-18T08:55:40Z
Lists: pgsql-hackers
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