Re: IO wait events for COPY FROM/TO PROGRAM or file

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Sami Imseih <samimseih(at)gmail(dot)com>
Cc: Nikolay Samokhvalov <nik(at)postgres(dot)ai>, pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: IO wait events for COPY FROM/TO PROGRAM or file
Date: 2026-01-11 10:22:26
Message-ID: aWN54sRhx38nurF6@paquier.xyz
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Henson Choi 2026-01-11 10:53:44 Re: SQL Property Graph Queries (SQL/PGQ)
Previous Message zengman 2026-01-11 10:20:34 Re: [PATCH] Fix minor issues in astreamer_zstd.c