Re: IO wait events for COPY FROM/TO PROGRAM or file - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: IO wait events for COPY FROM/TO PROGRAM or file
Date
Msg-id aWN54sRhx38nurF6@paquier.xyz
Whole thread Raw
In response to Re: IO wait events for COPY FROM/TO PROGRAM or file  (Sami Imseih <samimseih@gmail.com>)
List pgsql-hackers
On Thu, Jan 08, 2026 at 09:22:26PM -0600, Sami Imseih wrote:
> I don't see any issue with this approach for fwrite().

Please feel free to discard my comment, then :)

> Another comment. Wouldn't be better to use "COPY FROM" and "COPY TO" in the
> names to make it more obvious they are related to the COPY command?

Yeah, we had better do that.  That's slightly cleaner for the user if
they mix both COPY types at the same time, not requiring a mental
mapping that FROM is a read and TO is a write.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: "zengman"
Date:
Subject: Re: [PATCH] Fix minor issues in astreamer_zstd.c
Next
From: Henson Choi
Date:
Subject: Re: SQL Property Graph Queries (SQL/PGQ)