Re: Monitoring PostgreSQL Copy Operations - Mailing list pgsql-admin

From Ron Johnson
Subject Re: Monitoring PostgreSQL Copy Operations
Date
Msg-id CANzqJaDOimOC7cTP7zwt3BjR8stQ+fj-iz+crrAow=c+m4QXkw@mail.gmail.com
Whole thread Raw
In response to Monitoring PostgreSQL Copy Operations  (Abdullah Ergin <abdullaherginwork@gmail.com>)
List pgsql-admin
On Wed, Nov 12, 2025 at 3:33 AM Abdullah Ergin <abdullaherginwork@gmail.com> wrote:

To monitor Copy operations in PostgreSQL in real-time, I use the “pg_stat_progress_copy” view tool:

Here, I specifically want to analyze the number of tuples processed by the command, which is “tuples_processed”. However, since pg_stat_progress_copy is a view tool, the information disappears once the operation is complete, and it does not save the result of the copy operation anywhere. How can I save the result of the copy operation?

Pipe the query output to "tee -a blarge.log" 

--
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!

pgsql-admin by date:

Previous
From: Abdullah Ergin
Date:
Subject: Monitoring PostgreSQL Copy Operations
Next
From: Sam Stearns
Date:
Subject: Re: Re: Postgres Parameters