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

From: Sutou Kouhei <kou(at)clear-code(dot)com>
To: david(dot)g(dot)johnston(at)gmail(dot)com
Cc: sawada(dot)mshk(at)gmail(dot)com, tgl(at)sss(dot)pgh(dot)pa(dot)us, zhjwpku(at)gmail(dot)com, michael(at)paquier(dot)xyz, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Make COPY format extendable: Extract COPY TO format implementations
Date: 2025-03-20 01:24:55
Message-ID: 20250320.102455.368644254171739664.kou@clear-code.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

In <CAKFQuwaMAFMHqxDXR=SxA0mDjdmntrwxZd2w=nSruLNFH-OzLw(at)mail(dot)gmail(dot)com>
"Re: Make COPY format extendable: Extract COPY TO format implementations" on Wed, 19 Mar 2025 17:49:49 -0700,
"David G. Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> wrote:

>> And could someone help (take over if possible) writing a
>> document for this feature? I'm not good at writing a
>> document in English... 0009 in the attached v37 patch set
>> has a draft of it. It's based on existing documents in
>> doc/src/sgml/ and *.h.
>>
>>
> I haven't touched the innards of the structs aside from changing
> programlisting to synopsis. And redoing the two section opening paragraphs
> to better integrate with the content in the chapter opening.
>
> The rest I kinda went to town on...

Thanks!!! It's very helpful!!!

I've applied your patch. 0009 is only changed.

Thanks,
--
kou

Attachment Content-Type Size
v38-0001-Add-support-for-adding-custom-COPY-TO-format.patch text/x-patch 19.0 KB
v38-0002-Export-CopyToStateData-as-private-data.patch text/x-patch 9.7 KB
v38-0003-Add-support-for-implementing-custom-COPY-TO-form.patch text/x-patch 2.4 KB
v38-0004-Add-support-for-adding-custom-COPY-FROM-format.patch text/x-patch 8.7 KB
v38-0005-Use-COPY_SOURCE_-prefix-for-CopySource-enum-valu.patch text/x-patch 3.5 KB
v38-0006-Add-support-for-implementing-custom-COPY-FROM-fo.patch text/x-patch 2.4 KB
v38-0007-Add-CopyFromSkipErrorRow-for-custom-COPY-format-.patch text/x-patch 11.0 KB
v38-0008-Use-copy-handlers-for-built-in-formats.patch text/x-patch 10.5 KB
v38-0009-Add-document-how-to-write-a-COPY-handler.patch text/x-patch 14.7 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Nathan Bossart 2025-03-20 02:02:42 Re: optimize file transfer in pg_upgrade
Previous Message Noah Misch 2025-03-20 01:11:18 Re: AIO v2.5