Re: [PATCH] Reject ENCODING option for COPY TO FORMAT JSON - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: [PATCH] Reject ENCODING option for COPY TO FORMAT JSON
Date
Msg-id BAE67870-B76F-4B56-9BC4-F2E01AA7D8FF@yesql.se
Whole thread
In response to [PATCH] Reject ENCODING option for COPY TO FORMAT JSON  (Ayush Tiwari <ayushtiwari.slg01@gmail.com>)
Responses Re: [PATCH] Reject ENCODING option for COPY TO FORMAT JSON
List pgsql-hackers
> On 20 Apr 2026, at 08:06, Ayush Tiwari <ayushtiwari.slg01@gmail.com> wrote:

> The attached patch rejects the explicit ENCODING option for JSON
> mode, consistent with how DELIMITER, NULL, DEFAULT, and HEADER are
> already rejected.

Given that we reject other incompatible parameters it makes sense to reject
this one as well, however I think we can expand the comment a little and
explain why.

--
Daniel Gustafsson




pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Fix stats reporting delays in logical parallel apply worker
Next
From: Dean Rasheed
Date:
Subject: Re: Bug: Rule actions see wrong values for generated columns (NEW.gen reads OLD value)