Re: SELECT ... FOR UPDATE and ResultSet

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: SELECT ... FOR UPDATE and ResultSet
Дата
Msg-id 2427.1073009537@sss.pgh.pa.us
обсуждение исходный текст
Ответ на SELECT ... FOR UPDATE and ResultSet  (Jeffrey Tenny <jeffrey.tenny@comcast.net>)
Ответы Re: SELECT ... FOR UPDATE and ResultSet
Re: SELECT ... FOR UPDATE and ResultSet
Список pgsql-jdbc
Jeffrey Tenny <jeffrey.tenny@comcast.net> writes:
> Can I count on this behavior for PostgreSQL?  Or will it fail to lock
> all rows if
> I have a sufficiently large ResultSet and Connection.setFetchSize() does
> it's magic?

In the current implementation, the backend will only lock those rows
actually returned to the client.  If setFetchSize() causes not all the
rows to be fetched, you lose ...

            regards, tom lane

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

Предыдущее
От: Jeffrey Tenny
Дата:
Сообщение: SELECT ... FOR UPDATE and ResultSet
Следующее
От: Tom Lane
Дата:
Сообщение: Re: PostgreSQL design question