Re: Add support for DEFAULT specification in COPY FROM

Israel Barth Rubio <barthisrael@gmail.com>

From: Israel Barth Rubio <barthisrael@gmail.com>
To: Zhihong Yu <zyu@yugabyte.com>
Cc: Andrew Dunstan <andrew@dunslane.net>, pgsql-hackers@lists.postgresql.org
Date: 2022-10-07T20:54:46Z
Lists: pgsql-hackers

Attachments

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.

Commits

  1. Add a DEFAULT option to COPY FROM