Re: [PG19] COPY (query) TO ... (FORMAT json) uses the table's column names - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: [PG19] COPY (query) TO ... (FORMAT json) uses the table's column names
Date
Msg-id b7aa485e-1603-4708-b1c7-29c9d8173198@dunslane.net
Whole thread
In response to Re: [PG19] COPY (query) TO ... (FORMAT json) uses the table's column names  (shihao zhong <zhong950419@gmail.com>)
Responses Re: [PG19] COPY (query) TO ... (FORMAT json) uses the table's column names
List pgsql-hackers


On 2026-10-05 Mo 9:04 PM, shihao zhong wrote:
Hi Andrew,

> Please test this out and see if you can break it again ;-)

v2 looks good to me, and I could not break it with my previous
tests.

> so we can keep the copy and just pass it the
> query's descriptor. 

I think that makes sense, haven't thought about performance impact
at v1.



OK thanks to both of you. I will wait a day or so in case anyone else wants to chime in, and commit late Thursday or Friday morning.


cheers


andrew


--
Andrew Dunstan
EDB: https://www.enterprisedb.com

pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Add ASCII fast path to Unicode normalization functions
Next
From: "Tristan Partin"
Date:
Subject: Re: Fix out-of-bounds array indexing in JsonValueList