Causes an insert into a table with a unique column a tablelock or a rowlock?

Поиск
Список
Период
Сортировка
От u15074
Тема Causes an insert into a table with a unique column a tablelock or a rowlock?
Дата
Msg-id 1048000994.3e7739e25e017@webmail.hs-harz.de
обсуждение исходный текст
Ответы Re: Causes an insert into a table with a unique column
Список pgsql-general
I have a table containing a unique (primary key) column.
When I start a transaction and insert a row into the table, that doesn't
violate the unique constraint, will the whole table be locked or will there be
a rowlock?
What happens if I have a parallel transaction running, that inserts the same
row like the other transaction? Will I get an error or will I be able to
continue the transaction, but get an error when trying to commit?

Thanks.

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/


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

Предыдущее
От: u15074
Дата:
Сообщение: Can I write Large Objects in parallel transactions?
Следующее
От: Csaba Nagy
Дата:
Сообщение: Re: insert aliases?