Re: set-level update fails with unique constraint violation
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: set-level update fails with unique constraint violation |
| Дата | |
| Msg-id | 7714.1263055182@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: set-level update fails with unique constraint violation ("Daniel Verite" <daniel@manitou-mail.org>) |
| Список | pgsql-general |
"Daniel Verite" <daniel@manitou-mail.org> writes:
> Tom Lane wrote:
>> 1. Performance. The cost of #2 is very large, and the number of cases
>> where you actually need it is not.
> Per Dean's explanation upthread, It looks like an additional cost for #2
> would occur mostly when temporary conflicts occur, that is, when it's needed.
I'm not sure where you got that from his explanation, but it's not the
case. The problem with any type of delayed verification is that it
requires a second index search, on top of the one you already did while
making your index entry. This occurs whether or not there is any conflict.
The problem is especially acute when you have an update or insert
affecting a large fraction of the table.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера