| От | Neil Conway |
|---|---|
| Тема | updated GiST patch |
| Дата | |
| Msg-id | 42883140.6010007@samurai.com обсуждение исходный текст |
| Ответы |
Re: updated GiST patch
|
| Список | pgsql-patches |
This is an updated version of the GiST patch I posted a few months ago. As before, it makes the following changes: - ensure that all user-supplied GiST methods are invoked in a short-lived memory context. Therefore, explicitly releasing palloc'ed memory via pfree is unnecessary (and probably results in worse performance). This lowers the barrier to entry for writing GiST-based indexes. - change GiST so that we keep a pin on a scan's current buffer, rather than doing ReadBuffer() for each tuple produced by the scan. ReadBuffer() is relatively expensive, so this is a win. - the previous change makes it pretty easy to implement dead tuple killing for GiST (which means that all the builtin indexes now do this). The patch also cleans up a lot of pretty ugly code in GiST. AFAIK all existing GiST-based indexes should continue to work unchanged -- the regression tests for all the contrib/ indexes pass, at any rate. Barring any objections I'll apply this to HEAD tomorrow or the day after. -Neil
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера