Re: Survey results on Oracle/M$NT4 to PG72/RH72 migration

From: "Zeugswetter Andreas SB SD" <ZeugswetterA(at)spardat(dot)at>
To: "Jean-Paul ARGUDO" <jean-paul(dot)argudo(at)idealx(dot)com>, <pgsql-hackers(at)postgresql(dot)org>, <meskes(at)postgresql(dot)org>
Cc: "David BARTH" <dbarth(at)idealx(dot)com>, "Nat MAKAREVITCH" <nat(at)idealx(dot)com>, "Nicolas NICLAUSSE" <nicolas(dot)niclausse(at)idealx(dot)com>, Sébastien DINOT <sebastien(dot)dinot(at)idealx(dot)com>
Subject: Re: Survey results on Oracle/M$NT4 to PG72/RH72 migration
Date: 2002-03-13 21:19:48
Message-ID: 46C15C39FEB2C44BA555E356FBCD6FA4961D7C@m0114.s-mxs.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


> This seems not be the case in ECPG. In each COMMIT, the cursors are
> closed (they dont even need to close cursors in Oracle!). And at each
> BEGIN TRANSACTION PostgreSQL seems to compute again parsing and query
> plan..

I am still convinced that there is room for interpretation of the
standard here, Michael.

Since we have "begin work" all cursors that were opened outside
a tx block (before "begin work") should imho in no way be affected by a commit.
(e.g. Informix does it like that)
Someone who wants more conformant behavior would need to use the mode
of operation where you are always in a tx anyway, thus loosing the
above feature :-)

Unfortunately I think the backend currently would lack the necessary
support for this, since commit does the cleanup work for the cursor ?
Such a cursor would need an explicit close or open on the prepared
statement to be cleaned up.

Andreas

Browse pgsql-hackers by date

  From Date Subject
Next Message Zeugswetter Andreas SB SD 2002-03-13 21:30:59 Re: Survey results on Oracle/M$NT4 to PG72/RH72 migration
Previous Message Ian Barwick 2002-03-13 21:12:40 Re: psql and output from \?