]> git.ipfire.org Git - thirdparty/postgresql.git/commit
In COPY FROM, fail cleanly when unsupported encoding conversion is needed.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 1 Oct 2023 16:09:26 +0000 (12:09 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 1 Oct 2023 16:09:26 +0000 (12:09 -0400)
commita715c02122e7be8ff631e5ea28b80ec7307f39e6
tree5c494bf74238059100f68e3e24ef816c69df2d3e
parent2d4f99bc693aef5387834333eef06776777f4783
In COPY FROM, fail cleanly when unsupported encoding conversion is needed.

In recent releases, such cases fail with "cache lookup failed for
function 0" rather than complaining that the conversion function
doesn't exist as prior versions did.  Seems to be a consequence of
sloppy refactoring in commit f82de5c46.  Add the missing error check.

Per report from Pierre Fortin.  Back-patch to v14 where the
oversight crept in.

Discussion: https://postgr.es/m/20230929163739.3bea46e5.pfortin@pfortin.com
src/backend/commands/copyfrom.c