Re: [HACKERS] ecpg stuff - Mailing list pgsql-hackers

From Vadim B. Mikheev
Subject Re: [HACKERS] ecpg stuff
Date
Msg-id 34EAA20C.47BCC7DB@sable.krasnoyarsk.su
Whole thread Raw
In response to Re: [HACKERS] ecpg stuff  (Michael Meskes <meskes@topsystem.de>)
List 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

pgsql-hackers by date:

Previous
From: Michael Meskes
Date:
Subject: Re: New ecgp code problem.
Next
From: "Meskes, Michael"
Date:
Subject: RE: [HACKERS] ecpg stuff