Re: jdbc xa support

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: jdbc xa support
Дата
Msg-id 42E2D286.2060700@opencloud.com
обсуждение исходный текст
Ответ на Re: jdbc xa support  (Heikki Linnakangas <hlinnaka@iki.fi>)
Список pgsql-jdbc
Heikki Linnakangas wrote:

>> On a related note, can we get the backend to indicate if a transaction
>> was read-only when the "PREPARE TRANSACTION" statement is called?
>> (Also, I believe preparing a read-only transaction should
>> automatically "commit" it.) We could then return XA_RDONLY from the
>> driver's prepare() method in that case.  As it is, it either throws an
>> exception or returns XA_OK.
>
>
> It should be possible, but we're already past the feature freeze so
> it'll have to wait for version 8.2. The backend already keeps track
> which transactions are read-only, and skips updating the clog for them.
> That information just needs to be exposed.

If the client uses Connection.setReadOnly() presumably we can track that
in the driver, which will catch some of the cases at least.

-O

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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: jdbc xa support
Следующее
От: Michael Allman
Дата:
Сообщение: Re: jdbc xa support