From: | Byron Nikolaidis <byronn(at)insightdist(dot)com> |
---|---|
To: | Bryan Brunton <bryan(at)flesherfab(dot)com> |
Cc: | "'pgsql-interfaces(at)postgresql(dot)org'" <pgsql-interfaces(at)postgreSQL(dot)org> |
Subject: | Re: [INTERFACES] Back-end problems with Delphi and ODBCExpress |
Date: | 1998-08-12 21:30:08 |
Message-ID: | 35D20960.B3F45788@insightdist.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Bryan Brunton | 1998-08-12 23:03:43 | '\' and varchar data type problem w/ MS Access and ODBC driver |
Previous Message | Byron Nikolaidis | 1998-08-12 20:03:11 | Re: [INTERFACES] Back-end problems with Delphi and ODBCExpress |