Synchronization issues with pg73jdbc3.jar and pg73jdbc2ee.jar

Поиск
Список
Период
Сортировка
От Gerlits András
Тема Synchronization issues with pg73jdbc3.jar and pg73jdbc2ee.jar
Дата
Msg-id 20030526173535.30067.qmail@neotek.hu
обсуждение исходный текст
Ответы Re: Synchronization issues with pg73jdbc3.jar and pg73jdbc2ee.jar  (Barry Lind <blind@xythos.com>)
Список pgsql-jdbc
Attached you'll find a simple multi-threaded example of a couple of
SERIALIZABLE transactions. I hope, I'm not making a complete ass of myself,
but it seems that the JDBC driver is unprepared to handle simultaneous
SERIALIZABLE transactions.

The table structure to test with is really simple:

CREATE TABLE test (
    id integer UNIQUE NOT NULL
);

The program tries to access the database for the highest id available, then
use it in a preparedstatement.

(The reason we do that is to prepare for the worst DB server available, we
know that there are other ways to do this in postgres.)

It first opens the connections, stores them, than hands them to the threads.

No connection is issued twice simultaneously.

Please edit the variables at the top, but check not to have more
InserterThreads than dbConnections.

Thanks
Andras Gerlits

Вложения

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

Предыдущее
От: Barry Lind
Дата:
Сообщение: Re: PGSQL Connection
Следующее
От: Barry Lind
Дата:
Сообщение: Re: Synchronization issues with pg73jdbc3.jar and pg73jdbc2ee.jar