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

Commits on Apr 29, 2025

  1. COPY (on_error set_null)

    Extent "on_error action", introduce new option:  on_error set_null.
    
    Current grammar makes us unable to use "on_error null". if we did it, then in
    all the COPY command options's value, null will become reserved to non-reserved
    words.  so we choose "on_error set_null".
    
    Any data type conversion errors during the COPY FROM process will result in the
    affected column being set to NULL. This only applies when using the non-binary
    format for COPY FROM.
    
    However, the not-null constraint will still be enforced.
    If a column has a not-null constraint, successful (on_error set_null)
    action will cause not-null constraint violation.
    This also applies to column type is domain with not-null constraint.
    
    A regression test for a domain with a not-null constraint has been added.
    
    Author: Jian He <[email protected]>
    Author: Kirill Reshke <[email protected]>
    
    Reviewed-by:
    Fujii Masao <[email protected]>
    Jim Jones <[email protected]>
    "David G. Johnston" <[email protected]>
    Yugo NAGATA <[email protected]>
    torikoshia <[email protected]>
    Masahiko Sawada <[email protected]>
    
    discussion: https://postgr.es/m/CAKFQuwawy1e6YR4S=j+y7pXqg_Dw1WBVrgvf=BP3d1_aSfe_+Q@mail.gmail.com
    jianhe-fun authored and Commitfest Bot committed Apr 29, 2025
    Configuration menu
    Copy the full SHA
    bf0bcb7 View commit details
    Browse the repository at this point in the history
  2. [CF 4810] v17 - COPY ON_ERROR 'NULL'

    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/4810
    
    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/CACJufxGEHmijmP-QqvrmqU6cxmhgpdjY7ewQBQ=E9NmdyEcqmw@mail.gmail.com
    Author(s): jian he
    Commitfest Bot committed Apr 29, 2025
    Configuration menu
    Copy the full SHA
    92bd605 View commit details
    Browse the repository at this point in the history
Loading