pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: In COPY FROM, fail cleanly when unsupported encoding conversion
Date: Sun, 01 Oct 2023 16:09:39 +0000
Message-ID: <E1qmz0l-0070Lz-8d@gemulon.postgresql.org> (raw)

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

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/95fd5c89ffa18f6958f0135013046f798cced72b

Modified Files
--------------
src/backend/commands/copyfrom.c | 6 ++++++
1 file changed, 6 insertions(+)



view thread (4+ messages)  latest in thread

Message-ID: <E1qmz0l-0070Lz-8d@gemulon.postgresql.org>
Permalink:  ../E1qmz0l-0070Lz-8d@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1qmz0l-0070Lz-8d@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: In COPY FROM, fail cleanly when unsupported encoding conversion
  In-Reply-To: <E1qmz0l-0070Lz-8d@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox