git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: b1a8dc8) | patch
Only evaluate default values as required when doing COPY FROM
Sun, 1 Oct 2023 14:18:41 +0000 (10:18 -0400)
Sun, 1 Oct 2023 14:18:41 +0000 (10:18 -0400)
commit 276393f53efbf08f72190221e9c1ef2a28e7fc66
Only evaluate default values as required when doing COPY FROM

Commit 9f8377f7a2 was a little too eager in fetching default values.
Normally this would not matter, but if the default value is not valid
for the type (e.g. a varchar that's too long) it caused an unnecessary
error.

Complaint and fix from Laurenz Albe

Backpatch to release 16.

Discussion: https://postgr.es/m/75a7b7483aeb331aa017328d606d568fc715b90d.camel@cybertec.at
src/backend/commands/copyfrom.c diff | blob | blame | history
src/test/regress/expected/copy.out diff | blob | blame | history
src/test/regress/sql/copy.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /