Re: BUG #2830: Wrong results for prepared statements while clustering target table
В списке pgsql-bugs по дате отправления:
| От | Martin Pihlak |
|---|---|
| Тема | Re: BUG #2830: Wrong results for prepared statements while clustering target table |
| Дата | |
| Msg-id | 3ca0edeb0612170428r6a7ed667jb5451f3ab7b4b2bc@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: BUG #2830: Wrong results for prepared statements while clustering target table (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-bugs |
> The short answer is "don't CLUSTER while the table is in live use" ... > This is kind of difficult on a busy database, more so if it's a 24x7 environment. And unfortunately there aren't any good alternatives either. > The difference between EXECUTE and SELECT behavior here is just a chance > matter of exactly where the snap is taken during the parse/execute code > path --- your SELECT works because it blocks for AccessShareLock on the > table before it sets the snap. But SELECT would fail just the same way > within a serializable transaction that had already set its snapshot. > Ok, makes sense. The same reasoning probably applies to INSERT and UPDATE as well. Still the problem remains - how to cluster a table on a busy system without losing data or getting wrong results. Perhaps the issue should be documented, although a fix would be preferrable ;) Martin
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера