| От | Tom Lane |
|---|---|
| Тема | HOT updates in index-less tables |
| Дата | |
| Msg-id | 25819.1289663508@sss.pgh.pa.us обсуждение исходный текст |
| Ответы |
Re: HOT updates in index-less tables
|
| Список | pgsql-hackers |
If a table has no indexes, we will always decide that any same-page update operation is a HOT update, since obviously it isn't modifying any indexed columns. But is there any benefit to doing so? I don't see one offhand, and it has a downside: we're very likely to encounter broken HOT chains if an index is created later. That leads to the sort of unexpected behavior exhibited here: http://archives.postgresql.org/pgsql-performance/2010-11/msg00216.php I'm thinking maybe HeapSatisfiesHOTUpdate should be changed so that it always returns false if the relation has no indexes, which could be checked cheaply via relation->rd_rel->relhasindex. regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера