Re: [INTERFACES] Back-end problems with Delphi and ODBCExpress - Mailing list pgsql-interfaces

From Byron Nikolaidis
Subject Re: [INTERFACES] Back-end problems with Delphi and ODBCExpress
Date
Msg-id 35D20960.B3F45788@insightdist.com
Whole thread Raw
List 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 by date:

Previous
From: Byron Nikolaidis
Date:
Subject: Re: [INTERFACES] Back-end problems with Delphi and ODBCExpress
Next
From: Bryan Brunton
Date:
Subject: '\' and varchar data type problem w/ MS Access and ODBC driver