Перейти к содержимому
Новости нашего ИТ логотип
Опубликовано

Index page pruning in PostgreSQL

Автор

Кратко

Index page pruning in PostgreSQL #databases Page pruning (HOT cleanup) is an optimization allowing to efficiently remove old row versions...

Index page pruning in PostgreSQL #databases Page pruning (HOT cleanup) is an optimization allowing to efficiently remove old row versions (tuples) from table blocks. The freed space will be reused for new row versions. The only space occupied by row versions beyond the database's xmin horizon is reclaimed. This article examines the algorithm behind a similar optimization for indexes. If the xmin horizon is held back - by a long-running query or transaction - neither page pruning nor VACUUM can reclaim space, forcing new row versions to be inserted into different blocks. With the standard pgbench test, we demonstrate how significantly performance can degrade when the database horizon is held back, and we analyze the underlying causes.

link

avatar
Новости нашего ИТ
12 подписчиков
6774 поста
Данный канал является агрегатором технических статей нашего любимого ИТ, так что кто устал листать тысячи сайтов в поиске технических статей присоеденяйтесь к каналу и наслаждайтесь #it_news