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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: d0c8cf2) | patch
Refactor error messages to reduce duplication
Thu, 8 Aug 2024 19:17:11 +0000 (15:17 -0400)
Thu, 8 Aug 2024 19:17:11 +0000 (15:17 -0400)
commit 498ee9ee2f4bc7d79f2d91cdd817b2a8f14a664f
Refactor error messages to reduce duplication

I also took the liberty of changing

errmsg("COPY DEFAULT only available using COPY FROM")
to
errmsg("COPY %s cannot be used with %s", "DEFAULT", "COPY TO")

because the original wording is unlike all other messages that indicate
option incompatibility. This message was added by commit 9f8377f7a279
(16-era), in whose development thread there was no discussion on this
point.

Backpatch to 17.
src/backend/commands/copy.c diff | blob | blame | history
src/backend/commands/copyfrom.c diff | blob | blame | history
src/backend/commands/copyto.c diff | blob | blame | history
src/test/regress/expected/copy2.out diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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