pgsql: In COPY FROM, fail cleanly when unsupported encoding conversion

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: In COPY FROM, fail cleanly when unsupported encoding conversion
Дата
Msg-id E1qmz0l-0070Lz-8d@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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(+)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: pgsql: Only evaluate default values as required when doing COPY FROM
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix datalen calculation in tsvectorrecv().