Re: Oracle vs PostgreSQL in real life

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas SB SD
Тема Re: Oracle vs PostgreSQL in real life
Дата
Msg-id 46C15C39FEB2C44BA555E356FBCD6FA41EB52F@m0114.s-mxs.net
обсуждение исходный текст
Ответ на Oracle vs PostgreSQL in real life  (Jean-Paul ARGUDO <jean-paul.argudo@idealx.com>)
Список pgsql-hackers
> > As I wrote it before there, it is an ECPG script that runs with bad perfs.
> > ...
> > it seems that on every commit, the cursor is closed
>
> Cursors shouldn't be closed, but prepared statements are deallocated on each
> commit. AFAIK this is what the standard says.

Wow, this sure sounds completely bogus to me.
Imho CURSORS opened inside a transanction (after BEGIN WORK) are supposed to
be closed (at least with autocommit=yes).

I do not think COMMIT is supposed to do anything with a prepared
statement. That is what EXEC SQL FREE :statementid is for.

That would then match e.g. Informix esql/c.

Andreas


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew McMillan
Дата:
Сообщение: Re: eWeek Poll: Which database is most critical to your
Следующее
От: "Zeugswetter Andreas SB SD"
Дата:
Сообщение: Re: elog() patch