Understanding updates and deadlocks more clearly

Поиск
Список
Период
Сортировка
От Wells Oliver
Тема Understanding updates and deadlocks more clearly
Дата
Msg-id CAOC+FBW_UYx39cXjXE2Y68pU4O8-+PUUabvZzba4Y38Hm+McDQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Understanding updates and deadlocks more clearly  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: Understanding updates and deadlocks more clearly  (Ron <ronljohnsonjr@gmail.com>)
Список pgsql-admin
Hey folks: I want to clarify a few things about locks on updates:

1- can two processes update the same table if they are updating different rows?

2- in the event of two processes trying to update the same row, does this always result in a deadlock?

3- is there a way to create a system whereby potentially concurrent processes can update the same row in a given table, can the server be made to queue those updates, etc?

Is it just a no-go to try and have a situation where concurrent processes are trying to update the same record?
 
--

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

Предыдущее
От: Sbob
Дата:
Сообщение: Re: pgbench log output
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Understanding updates and deadlocks more clearly