Using indexUnchanged with nbtree

From: Simon Riggs <simon(dot)riggs(at)enterprisedb(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Using indexUnchanged with nbtree
Date: 2021-06-21 12:31:07
Message-ID: CANbhV-EVCfUsDRP42LU_0B75ZR+jnsorap+T_JKBr4WaAQPsgA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Seems like we can skip the uniqueness check if indexUnchanged, which
will speed up non-HOT UPDATEs on tables with B-Trees.

Passes tests.

Comments?

--
Simon Riggs http://www.EnterpriseDB.com/

Attachment Content-Type Size
skip_nonHOT_btree_unique_check.v1.patch application/octet-stream 602 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2021-06-21 13:08:12 Doc chapter for Hash Indexes
Previous Message Andres Freund 2021-06-21 12:29:19 Re: pg14b1 stuck in lazy_scan_prune/heap_page_prune of pg_statistic