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: b63a822
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: 775887a
Choose a head ref
  • 2 commits
  • 5 files changed
  • 2 contributors

Commits on Sep 16, 2025

  1. UPDATE with invalid domain constraint

    should UPDATE statement need to verify that the domain value is satisfied with
    invalid domain constraints?
    Álvaro Herrera already mentioned this in [1], but I just want to confirm it.
    
    drop table if exists dt1;
    drop domain if exists d1;
    create domain d1 as int;
    create table dt1(i int, c d1);
    insert into dt1 values(1,2);
    alter domain d1 add constraint cc check(value <> 2) not valid;
    
    update dt1 set i = i + 1;
    update dt1 set c = c;
    update dt1 set i = i + 1, c = c;
    update dt1 set i = i + 1, c = c::d1;
    This only happens with UPDATE, since INSERT will also check with domain invalid constraints.
    
    [1]: https://postgr.es/m/202508140957.4daktvyr7xiw@alvherre.pgsql
    jianhe-fun authored and Commitfest Bot committed Sep 16, 2025
    Configuration menu
    Copy the full SHA
    0708766 View commit details
    Browse the repository at this point in the history
  2. [CF 6031] v1 - UPDATE with invalid domain constraint

    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/6031
    
    The branch will be overwritten each time a new patch version is posted to
    the thread, and also periodically to check for bitrot caused by changes
    on the master branch.
    
    Patch(es): https://www.postgresql.org/message-id/CACJufxGYwfzK-WH2FKtyaKzUAht_KjimGPzkspc4g5RHoerpmQ@mail.gmail.com
    Author(s): Jian He
    Commitfest Bot committed Sep 16, 2025
    Configuration menu
    Copy the full SHA
    775887a View commit details
    Browse the repository at this point in the history
Loading