Re: [INTERFACES] Back-end problems with Delphi and ODBCExpress

Поиск
Список
Период
Сортировка
От Byron Nikolaidis
Тема Re: [INTERFACES] Back-end problems with Delphi and ODBCExpress
Дата
Msg-id 35D20960.B3F45788@insightdist.com
обсуждение исходный текст
Список pgsql-interfaces

Bryan Brunton wrote:

> Turning off that option fixed the problem.  I'm concerned that the
> back-end
> should be effected by this.  Shouldn't it be able to recover from
> confusing
> statements that a ODBC driver sends it, rather than locking up like
> this?
>

The reason it locked up with the declare/fetch option ON is because postgres
cursors require a transaction to be started.  The table being viewed inside
the transaction is then locked from any other process even viewing it.
Without the declare/fetch option, no transactions are used, so it works.

The simple explanation is that the backend locking strategy needs to be
improved.  This is a well-known limitation of postgres that is being worked
on (I believe by Vadim).  He mentioned something recently on the hackers
list about working on readers not locking other readers, which is exactly
what is happening here.  Sounded interesting.

Byron



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

Предыдущее
От: Byron Nikolaidis
Дата:
Сообщение: Re: [INTERFACES] Back-end problems with Delphi and ODBCExpress
Следующее
От: Bryan Brunton
Дата:
Сообщение: '\' and varchar data type problem w/ MS Access and ODBC driver