Re: Add support for DEFAULT specification in COPY FROM - Mailing list pgsql-hackers

From Israel Barth Rubio
Subject Re: Add support for DEFAULT specification in COPY FROM
Date
Msg-id CAO_rXXAZHqtto71o6FpE8umXZbCCgQxm20WsBsy=snS9x4yFpw@mail.gmail.com
Whole thread Raw
In response to Re: Add support for DEFAULT specification in COPY FROM  (Israel Barth Rubio <barthisrael@gmail.com>)
Responses Re: Add support for DEFAULT specification in COPY FROM
Re: Add support for DEFAULT specification in COPY FROM
List pgsql-hackers
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.

Best regards,
Israel.

Em sex., 7 de out. de 2022 às 17:54, Israel Barth Rubio <barthisrael@gmail.com> escreveu:
Hello Zhihong,

> For the last question, please take a look at:
> #define MemSetAligned(start, val, len) \ 
> which is called by palloc0().

Oh, I totally missed that. Thanks for the heads up!

I'm attaching the new patch version, which contains both the fix
to the problem reported by Andres, and removes this useless
MemSet call.

Best regards,
Israel.
Attachment

pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: initdb: Refactor PG_CMD_PUTS loops
Next
From: Tom Lane
Date:
Subject: Re: Error-safe user functions