Re: Make COPY format extendable: Extract COPY TO format implementations

From: Manu <manuelreyesbravo(at)gmail(dot)com>
To: Joao Rito <joaovictor(dot)rito(at)gmail(dot)com>
Cc: Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, Sutou Kouhei <kou(at)clear-code(dot)com>, Tomas Vondra <tomas(at)vondra(dot)me>, Michael Paquier <michael(at)paquier(dot)xyz>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Make COPY format extendable: Extract COPY TO format implementations
Date: 2026-11-14 01:28:33
Message-ID: 179461971370.1804987.17353680999034032361@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Joao,

On Tue, Nov 10, 2026 at 9:11 AM Joao Rito <joaovictor(dot)rito(at)gmail(dot)com>
wrote:
> Comments 2 and 3 are the ones I think matter most for format authors;
> the rest are small.

Thanks for testing the export diff and the ndjson module. Your points
2 and 3 both apply to the module. It registers no validate callback,
although 0003 says a format can reject core options there, so
DELIMITER, HEADER, NULL and FORCE_QUOTE pass without a word. And it
neither honours ON_ERROR nor sets cur_lineno; nothing in copyapi.h
says a format has to.

Regards,
Manu

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message xnervwang 2026-11-14 01:29:11 Re: [PATCH] pg_input_is_valid() reuses the first type name inside a PL/pgSQL loop
Previous Message Manu 2026-11-14 01:23:07 Re: REPACK enhancements