PostgreSQL11preview-索引增強彙總

德哥發表於2018-07-28

標籤

PostgreSQL , 索引 , 增強 , 11


背景

PostgreSQL 11 索引特性的增強。

E.1.3.1.3. Indexes

  • Allow indexes to INCLUDE columns that are not part of the unique constraint but are available for index-only scans (Anastasia Lubennikova, Alexander Korotkov, Teodor Sigaev)

    This is also useful for including columns that don`t have btree support.

    《PostgreSQL 11 preview 功能增強 – 唯一約束 + 附加欄位組合功能索引》

    允許唯一約束索引中,使用INCLUDE包含非唯一約束的欄位的內容。甚至對於無法使用BTREE構建的欄位型別,也可以將它的欄位內容用include包含進來。類似b+tree的效果。

  • Remember the highest btree index page to optimize future monotonically increasing index additions (Pavan Deolasee, Peter Geoghegan)

  • Allow entire hash index pages to be scanned (Ashutosh Sharma)

    Previously for each hash index entry, we need to refind the scan position within the page. This cuts down on lock/unlock traffic.

  • Add predicate locking for hash, GiST and GIN indexes (Shubham Barai)

    This reduces the likelihood of serialization conflicts. ACCURATE?

  • Allow heap-only-tuple (HOT) updates for expression indexes when the values of the expressions are unchanged (Konstantin Knizhnik)

    《PostgreSQL 11 preview – Surjective indexes – 索引HOT增強(表示式)update評估》

E.1.3.1.3.1. SP-Gist

  • Add TEXT prefix operator ^@ which is supported by SP-GiST (Ildus Kurbangaliev)

    This is similar to using LIKE `word%` with btree indexes, but is more efficient.

    允許SP-GiST索引支援字首模糊查詢( ^@ 與 LIKE `word%` 效果一致 ),並且效率比btree索引更高。

  • Allow polygons to be indexed with SP-GiST (Nikita Glukhov, Alexander Korotkov)

    允許polygon型別使用SP-GiST索引 (空間分割槽索引)。

  • Allow SP-GiST indexes to optionally use compression (Teodor Sigaev, Heikki Linnakangas, Alexander Korotkov, Nikita Glukhov)

    允許SP-GiST索引支援壓縮。


相關文章