Re: Add support for DEFAULT specification in COPY FROM

From: Israel Barth Rubio <barthisrael(at)gmail(dot)com>
To: Zhihong Yu <zyu(at)yugabyte(dot)com>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Add support for DEFAULT specification in COPY FROM
Date: 2022-10-07 20:54:46
Message-ID: CAO_rXXAgfROxJAyZzD2kM9g7sRi4QGzTXo8f3maaGjmL5W=Bwg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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 Content-Type Size
v5-0001-Added-support-for-DEFAULT-in-COPY-FROM.patch application/octet-stream 31.7 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2022-10-07 21:19:03 Re: Nicely exiting PG_TRY and PG_CATCH
Previous Message Tom Lane 2022-10-07 20:18:59 Re: use has_privs_of_role() for pg_hba.conf