Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: postgresql-cfbot/postgresql
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: cf/5688~1
Choose a base ref
...
head repository: postgresql-cfbot/postgresql
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cf/5688
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Apr 8, 2025

  1. Fix PG 17 [NOT] NULL optimization bug for domains

    A PG 17 optimization allowed columns with NOT NULL constraints to skip
    table scans for IS NULL queries, and to skip IS NOT NULL checks for IS
    NOT NULL queries.  This didn't work for domain types, since domain types
    don't follow the IS NULL/IS NOT NULL constraint logic.  To fix, disable
    this optimization for domains for PG 17+.
    
    Reported-by: Jan Behrens
    
    Diagnosed-by: Tom Lane
    
    Discussion: https://postgr.es/m/[email protected]
    
    Backpatch-through: 17
    bmomjian committed Apr 8, 2025
    Configuration menu
    Copy the full SHA
    46b4ba5 View commit details
    Browse the repository at this point in the history
Loading