]> granicus.if.org Git - postgresql/commit
Fix failure to think clearly about encoding conversion errors in COPY.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 29 Oct 2004 19:18:22 +0000 (19:18 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 29 Oct 2004 19:18:22 +0000 (19:18 +0000)
commitf05cfd2c73af549c0f3035d499657b94ccf6005f
tree7415a1f56c5d6faac594f91b44f6a214e8dfd1b6
parent08510856a4b05b5d4bd609a8a9c362a81d3ed55a
Fix failure to think clearly about encoding conversion errors in COPY.
We can't regurgitate the unconverted string as I first thought, because
the elog.c mechanisms will assume the error message data is in the server
encoding and attempt a reverse conversion.  Eventually it might be worth
providing a short-circuit path to support this, but for now the simplest
solution is to abandon trying to report back the line contents after a
conversion failure.  Per bug report from Sil Lee, 27-Oct-2004.
src/backend/commands/copy.c