Re: locking problem in jdbc driver?

Поиск
Список
Период
Сортировка
Искать
От
Richard Broersma
Тема
Re: locking problem in jdbc driver?
Дата
Msg-id
396486430912300846t519b787al4c6deba6d0d2cb25@mail.gmail.com
Ответ на
locking problem in jdbc driver? (Sherif Kottapurath)
Список
Дерево обсуждения
locking problem in jdbc driver? Sherif Kottapurath <sherifkm@gmail.com>
Re: locking problem in jdbc driver? Richard Broersma <richard.broersma@gmail.com>
Re: locking problem in jdbc driver? Craig Ringer <craig@postnewspapers.com.au>
Re: locking problem in jdbc driver? Craig Ringer <craig@postnewspapers.com.au>
Re: locking problem in jdbc driver? Sherif Kottapurath <sherifkm@gmail.com>
On Wed, Dec 30, 2009 at 8:29 AM, Sherif Kottapurath  wrote:

> All threads shown here are operating on
> the same table, and they are all parts of transactions involving multiple tables.
> deadlock detection is set for 1 sec and no dedlocks are reported by postgres.

From my experience, PostgreSQL doesn't report deadlocks.  This is true
when purposely creating a dead-lock situation using two instances of
psql.  However, unless you've set your transaction isolation level to
SERIALIZABLE ( the default isolation level is READ COMMITED), you will
not be getting deadlocks from PostgreSQL.

http://www.postgresql.org/docs/8.4/interactive/transaction-iso.html#XACT-SERIALIZABLE
http://www.postgresql.org/docs/8.4/interactive/transaction-iso.html#XACT-READ-COMMITTED

Also, IIRC the PostgreSQL JDBC driver only allows a single thread to
access a connection object at a time.

http://jdbc.postgresql.org/documentation/84/thread.html

Could this be causing your problem?

-- 
Regards,
Richard Broersma Jr.
В списке pgsql-jdbc по дате отправления
От: Sherif Kottapurath
Дата:
От: Richard Broersma
Дата:
Сообщение: Re: metadata as XML
FAQ