Thanks to visit codestin.com
Credit goes to github.com

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/5907~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/5907
Choose a head ref
  • 3 commits
  • 6 files changed
  • 2 contributors

Commits on Dec 26, 2025

  1. add function DomainHaveVolatileConstraints

    the signature is:
    extern bool DomainHaveVolatileConstraints(Oid type_id, bool *have_volatile);
    
    Returns true if the Domain has any constraints.  If you want check this domain
    have any volatile check constraints, make sure have_volatile is not NULL.
    
    discussion: https://postgr.es/m/CACJufxE_+iZBR1i49k_AHigppPwLTJi6km8NOsC7FWvKdEmmXg@mail.gmail.com
    jianhe-fun authored and Commitfest Bot committed Dec 26, 2025
    Configuration menu
    Copy the full SHA
    526226b View commit details
    Browse the repository at this point in the history
  2. skip table rewrite when set column type to constrained domain

    If a table rewrite is required, there's nothing we can do about it.  We can add
    a new boolean field need_compute to NewColumnValue.
    
    This field is currently set to true only when changing an existing column's type
    to a constrained domain.  In such cases, a table scan alone is sufficient.
    
    This only works if the new domain type all constraint are non-volatile.  and new
    domain base type is binary coercible with the old column type.
    
    [1]: https://www.postgresql.org/message-id/[email protected]
    discussion: https://postgr.es/m/CACJufxFX0DupbF5+DBNF3mXCFNTZ1Y7jpT11+tCD_FcyADHs2A@mail.gmail.com
    commitfest: https://commitfest.postgresql.org/patch/5907
    jianhe-fun authored and Commitfest Bot committed Dec 26, 2025
    Configuration menu
    Copy the full SHA
    018a753 View commit details
    Browse the repository at this point in the history
  3. [CF 5907] v3 - no table rewrite when set column type to constrained d…

    …omain
    
    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/5907
    
    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/CACJufxFEGpLYVBzt=cTp2xFZpm02CfyGkMz6bj3Xqx9x3=bNxQ@mail.gmail.com
    Author(s): Jian He
    Commitfest Bot committed Dec 26, 2025
    Configuration menu
    Copy the full SHA
    a5f26d9 View commit details
    Browse the repository at this point in the history
Loading