| От | Tom Lane |
|---|---|
| Тема | Re: Re[2]: Perfomance decreasing |
| Дата | |
| Msg-id | 16185.997992367@sss.pgh.pa.us обсуждение |
| Ответ на | Re[2]: Perfomance decreasing (Alexander Loginov <sas@mplik.ru>) |
| Ответы |
RE: Re[2]: Perfomance decreasing
|
| Список | pgsql-general |
Alexander Loginov <sas@mplik.ru> writes:
> I have only one small question. Can I do REINDEX during inserting
> of information into tables. Or I must block somehow updating of
> tables.
Hmmm ... it looks like REINDEX only grabs AccessShareLock on the target
relation, which seems very wrong. Hiroshi, doesn't it need to get a
stronger lock to prevent concurrent insertions? For that matter,
shouldn't the lock be obtained a lot earlier, to ensure the table isn't
dropped partway through? There's a lot of processing here that seems
to be executed while holding no lock at all :-(
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера