| От | Tom Lane |
|---|---|
| Тема | Re: Question: pg_class attributes and race conditions ? |
| Дата | |
| Msg-id | 6848.1174057767@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Question: pg_class attributes and race conditions ? ("Pavan Deolasee" <pavan.deolasee@enterprisedb.com>) |
| Ответы |
Re: Question: pg_class attributes and race conditions ?
|
| Список | pgsql-hackers |
"Pavan Deolasee" <pavan.deolasee@enterprisedb.com> writes:
> My understanding is that the backend which sets this attribute
> must first acquire a lock on the heap relation of sufficient
> strength so as to ensure that there are no concurrent UPDATErs,
> update the pg_class row and then release the lock on the relation.
In what context are you proposing to do that, and won't this
high-strength lock in itself lead to deadlocks?
The whole thing sounds exceedingly ugly anyway --- for example
what happens if the backend doing the CREATE INDEX fails and
is therefore unable to clear the flag again?
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера