Re: Making Row Comparison NULL row member handling more robust during skip scans

Peter Geoghegan <pg@bowt.ie>

From: Peter Geoghegan <pg@bowt.ie>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-07-01T16:37:05Z
Lists: pgsql-hackers

Attachments

On Fri, Jun 27, 2025 at 5:35 PM Peter Geoghegan <pg@bowt.ie> wrote:
> Attached is v4, which is largely just a polished version of v3. It has
> improved comments and more worked out commit messages. Plus the second
> patch (the row compare patch) now teaches _bt_first to fully rely on
> scan key requiredness markings, just like with other scan keys.

Heikki said he'd be able to give this patch set at least a quick
review, so here's a new revision, v4.

This isn't really different to v4. It has more comment cleanup, and
better commit messages.

-- 
Peter Geoghegan

Commits

  1. Make row compares robust during nbtree array scans.

  2. Make handling of redundant nbtree keys more robust.

  3. Revert "nbtree: Remove useless row compare arg."

  4. nbtree: Remove useless row compare arg.

  5. Prevent premature nbtree array advancement.

  6. Improvements and fixes for e0b1ee17dc

  7. Fix incorrect handling of NULL index entries in indexed ROW() comparisons.

  8. Fix btree stop-at-nulls logic properly.

  9. Stop btree indexscans upon reaching nulls in either direction.