public inbox for [email protected]  
help / color / mirror / Atom feed
Monitoring PostgreSQL Copy Operations
2+ messages / 2 participants
[nested] [flat]

* Monitoring PostgreSQL Copy Operations
@ 2025-11-12 08:33 Abdullah Ergin <[email protected]>
  2025-11-12 14:06 ` Re: Monitoring PostgreSQL Copy Operations Ron Johnson <[email protected]>
  0 siblings, 1 reply; 2+ messages in thread

From: Abdullah Ergin @ 2025-11-12 08:33 UTC (permalink / raw)
  To: [email protected]

To monitor Copy operations in PostgreSQL in real-time, I use the “
pg_stat_progress_copy
<https://www.postgresql.org/docs/current/progress-reporting.html#COPY-PROGRESS-REPORTING>”
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?

Postgresql Version: 16.10

Thank You, Regards.


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Monitoring PostgreSQL Copy Operations
  2025-11-12 08:33 Monitoring PostgreSQL Copy Operations Abdullah Ergin <[email protected]>
@ 2025-11-12 14:06 ` Ron Johnson <[email protected]>
  0 siblings, 0 replies; 2+ messages in thread

From: Ron Johnson @ 2025-11-12 14:06 UTC (permalink / raw)
  To: Pgsql-admin <[email protected]>

On Wed, Nov 12, 2025 at 3:33 AM Abdullah Ergin <[email protected]>
wrote:

> To monitor Copy operations in PostgreSQL in real-time, I use the “
> pg_stat_progress_copy
> <https://www.postgresql.org/docs/current/progress-reporting.html#COPY-PROGRESS-REPORTING>”
> 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!


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2025-11-12 14:06 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-11-12 08:33 Monitoring PostgreSQL Copy Operations Abdullah Ergin <[email protected]>
2025-11-12 14:06 ` Ron Johnson <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox