Re: insert blocking?

Поиск
Список
Период
Сортировка
От Haug Bürger
Тема Re: insert blocking?
Дата
Msg-id 3CE202BA.2030706@iml.fhg.de
обсуждение исходный текст
Ответ на insert blocking?  (Haug Bürger <buerger@iml.fhg.de>)
Ответы Re: insert blocking?  (Dave Cramer <Dave@micro-automation.net>)
Список pgsql-jdbc
Hi Dave,

from your answer i get the impression that PostgreSQL uses record
locking by default.
Do you know how to find out how the DB is configured?

Thanks
    Haug


Dave Cramer wrote:

>Haug,
>
>you will need to execute the insert within a transaction to get the
>insert to block
>
>ie:
>con.setAutoCommit(false)
>execute("begin; ___lock table___")
>executeUpdate("insert ...."
>con.commit()
>
>Dave
>



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

Предыдущее
От: Jeremy Buchmann
Дата:
Сообщение: Re: select * from mytable where myfield=null;
Следующее
От: Gordon Luk
Дата:
Сообщение: Problem: upgrade from 7.1.3 to 7.2.1 ( database encode with ENC_TW)