Re: transactions

Поиск
Список
Период
Сортировка
От Douglas McNaught
Тема Re: transactions
Дата
Msg-id m2vf4r39kk.fsf@Douglas-McNaughts-Powerbook.local
обсуждение исходный текст
Ответ на transactions  ("Surabhi Ahuja " <surabhi.ahuja@iiitb.ac.in>)
Ответы Re: transactions  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-general
"Surabhi Ahuja " <surabhi.ahuja@iiitb.ac.in> writes:

> Hello everyone.
> I have the following question:
>
> say i have two transactions going on simultaneoulsy.
> in one transaction i do an insertion
> and the other transaction i do a delete.
> what will happen if in both the transactions, the insert(in one) and
> delete(in the other) are issued at exactly the same time? will bothe get
> blocked and enter into a deadlock, if yes then do both the transactions
> get aborted after some time of waiting.

The transactions will be executed completely independently, unless you
do explicit locking (via SELECT FOR UPDATE or LOCK TABLE).

-Doug

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

Предыдущее
От: grupos
Дата:
Сообщение: Re: Large Object => invalid input syntax for integer: ""
Следующее
От: grupos
Дата:
Сообщение: Re: Large Object => invalid input syntax for integer: ""