Re: Select For Update question

Поиск
Список
Период
Сортировка
От Jean-Christian Imbeault
Тема Re: Select For Update question
Дата
Msg-id 3E815F57.8070208@mega-bucks.co.jp
обсуждение исходный текст
Ответ на Select For Update question  (Jean-Christian Imbeault <jc@mega-bucks.co.jp>)
Ответы Re: Select For Update question
Список pgsql-jdbc
Barry Lind wrote:
>
> You should check out the Javadoc for the Connection object

Thanks for pointing me in the right direction. I've read the relevant
docs and was able to write up a quick test program that does properly
lock the rows when "select .. for update" is used.

I know this is not specifically postgres related, but if my application
crashes after putting a lock on some rows, I have notice that postgres
releases the locks.

Is the behaviour reliable? I.e. can feel safe in that if my application
crashes any locks it held will be released?

Thanks,

Jean-Christian Imbeault


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

Предыдущее
От: Shanmugasundaram Doraisamy
Дата:
Сообщение: Help Needed with Connection Pooling for Java Swing Based applications - reg.
Следующее
От: Barry Lind
Дата:
Сообщение: Re: Select For Update question