model-writtenrun 9496 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Geoghegan reported that inserting a million NULLs into a unique index took roughly 200 times longer than inserting non-NULL values, and proposed retaining the heap TID during tree descent and skipping unnecessary uniqueness checks #1.
- Peter posted the first patch, which bypassed uniqueness checking whenever the incoming tuple contained NULLs and removed _bt_isequal() in favor of _bt_compare() #2.
- Michael Paquier reproduced the regression on development HEAD and contrasted it with PostgreSQL 11 timings; his message tested the reported problem rather than the attached fix #3.
- Peter identified that NULL non-key INCLUDE attributes must not disable uniqueness checks #4, then revised the patch to track NULL key attributes through BTScanInsertData.anynullkeys without increasing the structure's size on Linux x86-64 #5.
- Peter committed the revised patch with light editorial and equivalent code changes as 9b10926263, then confirmed it was pushed, leaving no outstanding work stated in the thread #6.