Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display
От
Euler Taveira
Тема
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display
Дата
Msg-id
6e1625c2-ad82-4dad-8ccf-01d8a7dbb0d3@www.fastmail.com
Ответ на
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display (Bharath Rupireddy)
Список
Дерево обсуждения
add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display "Euler Taveira" <euler@eulerto.com>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display "Bossart, Nathan" <bossartn@amazon.com>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display "Bossart, Nathan" <bossartn@amazon.com>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display "Bossart, Nathan" <bossartn@amazon.com>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display Michael Paquier <michael@paquier.xyz>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display "Bossart, Nathan" <bossartn@amazon.com>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display Michael Paquier <michael@paquier.xyz>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display Michael Paquier <michael@paquier.xyz>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display Michael Paquier <michael@paquier.xyz>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display Michael Paquier <michael@paquier.xyz>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display Michael Paquier <michael@paquier.xyz>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display Ashutosh Sharma <ashu.coek88@gmail.com>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display "Bossart, Nathan" <bossartn@amazon.com>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display Bruce Momjian <bruce@momjian.us>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: add recovery, backup, archive, streaming etc. activity messages to server logs along with ps display "Euler Taveira" <euler@eulerto.com>
On Thu, Nov 11, 2021, at 2:50 AM, Bharath Rupireddy wrote:
But for the snprintf(activitymsg, sizeof(activitymsg), "archiving %s",xlog); we have elog(DEBUG1, "archived write-ahead log file \"%s\"",xlog); after the archiving command. It is also good to have a similardebug message before archive command execution, we can get to knowwhether archive command is executed or not, if yes how much time didit take etc.?
If you are only interested in how much time it took to archive a WAL file, you
don't need 2 messages (before and after); one message is sufficient. If you
calculate the difference and then print it as part of the existent message.
Calculate the difference iif the log level is at least DEBUG1 (same as the log
message).
Messages related to system() e.g. archive and recovery, you could measure the
execution time in your own script/program.
I like Alvaro's idea of implementing a ring buffer for this kind of activity.
This implementation could be applied to checkpoints, archiving, recovery,
replication, base backup, WAL usage, connections and others.
В списке pgsql-hackers по дате отправления