Re: Add support for DEFAULT specification in COPY FROM

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: Add support for DEFAULT specification in COPY FROM
Дата
Msg-id c3185ca1-ff67-ef0d-6557-bc8de8790e81@dunslane.net
обсуждение исходный текст
Ответ на Re: Add support for DEFAULT specification in COPY FROM  (Alexander Lakhin <exclusion@gmail.com>)
Список pgsql-hackers


On 2023-03-15 We 13:00, Alexander Lakhin wrote:
Hello,
13.03.2023 17:15, Andrew Dunstan wrote:

On 2022-12-02 Fr 09:11, Israel Barth Rubio wrote:
Hello all,

I'm submitting a new version of the patch. Instead of changing signature
of several functions in order to use the defaults parameter, it is now storing
that in the cstate structure, which is already passed to all functions that
were previously modified.


Thanks, committed.

Please look at the query:
create table t (f1 int);
copy t from stdin with (format csv, default '\D');
1,\D

that invokes an assertion failure after 9f8377f7a:
Core was generated by `postgres: law regression [local] COPY                                         '.
Program terminated with signal SIGABRT, Aborted.



Fix pushed, thanks for the report.


cheers


andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com

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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: windows CI failing PMSignalState->PMChildFlags[slot] == PM_CHILD_ASSIGNED
Следующее
От: Tom Lane
Дата:
Сообщение: Memory leak in libxml2 (was Re: [PATCH] Add pretty-printed XML output option)