Re: [PATCH] Reject ENCODING option for COPY TO FORMAT JSON

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: Ayush Tiwari <ayushtiwari(dot)slg01(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Andrew Dunstan <andrew(at)dunslane(dot)net>
Subject: Re: [PATCH] Reject ENCODING option for COPY TO FORMAT JSON
Date: 2026-04-20 08:26:22
Message-ID: BAE67870-B76F-4B56-9BC4-F2E01AA7D8FF@yesql.se
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 20 Apr 2026, at 08:06, Ayush Tiwari <ayushtiwari(dot)slg01(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dean Rasheed 2026-04-20 08:42:31 Re: Bug: Rule actions see wrong values for generated columns (NEW.gen reads OLD value)
Previous Message Amit Kapila 2026-04-20 08:23:47 Re: Fix stats reporting delays in logical parallel apply worker