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

PostgreSQL cost model: estimating the cost of flushing temp buffers to disk

Автор

Кратко

PostgreSQL cost model: estimating the cost of flushing temp buffers to disk #databases Today I present results from the first step towards...

PostgreSQL cost model: estimating the cost of flushing temp buffers to disk #databases Today I present results from the first step towards enabling temporary tables in PostgreSQL parallel query execution: benchmarking sequential writes and reads of temp buffers. I added functions to the PostgreSQL system catalog to measure buffer flush operations and ran a set of tests. For the planner, I estimated the cost coefficient of flushing a temporary table buffer page to disk relative to the existing DEFAULT_SEQ_PAGE_COST. I also estimated the cost of a simple scan of temp buffers (a dry-run). Measurements show that sequential writes are about 30% slower than reads. Based on these results, I propose a cost formula. I also ran a limited “dry-run” style estimate and measured write speed when table blocks are distributed across memory pages randomly.

link

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