Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs)
От
Julien Rouhaud
Тема
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs)
Дата
Msg-id
20220225163545.slsxurx2wbpme7vg@jrouhaud
Ответ на
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) (Nitin Jadhav)
Список
Дерево обсуждения
Report checkpoint progress in server logs Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Report checkpoint progress in server logs Magnus Hagander <magnus@hagander.net>
Re: Report checkpoint progress in server logs Tom Lane <tgl@sss.pgh.pa.us>
Re: Report checkpoint progress in server logs SATYANARAYANA NARLAPURAM <satyanarlapuram@gmail.com>
Re: Report checkpoint progress in server logs Michael Paquier <michael@paquier.xyz>
Re: Report checkpoint progress in server logs Bruce Momjian <bruce@momjian.us>
Re: Report checkpoint progress in server logs Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Ashutosh Sharma <ashu.coek88@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Matthias van de Meent <boekewurm+postgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Julien Rouhaud <rjuju123@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Julien Rouhaud <rjuju123@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Julien Rouhaud <rjuju123@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Julien Rouhaud <rjuju123@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Matthias van de Meent <boekewurm+postgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Matthias van de Meent <boekewurm+postgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Justin Pryzby <pryzby@telsasoft.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Ashutosh Sharma <ashu.coek88@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Matthias van de Meent <boekewurm+postgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Ashutosh Sharma <ashu.coek88@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Ashutosh Sharma <ashu.coek88@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Andres Freund <andres@anarazel.de>
Size of pg_rewrite (Was: Report checkpoint progress with pg_stat_progress_checkpoint) Matthias van de Meent <boekewurm+postgres@gmail.com>
Re: Size of pg_rewrite (Was: Report checkpoint progress with pg_stat_progress_checkpoint) Andres Freund <andres@anarazel.de>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Andres Freund <andres@anarazel.de>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) "Drouvot, Bertrand" <bertranddrouvot.pg@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Andres Freund <andres@anarazel.de>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Andres Freund <andres@anarazel.de>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) vignesh C <vignesh21@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Robert Haas <robertmhaas@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Andres Freund <andres@anarazel.de>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Robert Haas <robertmhaas@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Andres Freund <andres@anarazel.de>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Robert Haas <robertmhaas@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Andres Freund <andres@anarazel.de>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Tom Lane <tgl@sss.pgh.pa.us>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Robert Haas <robertmhaas@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Michael Paquier <michael@paquier.xyz>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Julien Rouhaud <rjuju123@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Julien Rouhaud <rjuju123@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Julien Rouhaud <rjuju123@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Julien Rouhaud <rjuju123@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Julien Rouhaud <rjuju123@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Ashutosh Sharma <ashu.coek88@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Julien Rouhaud <rjuju123@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Julien Rouhaud <rjuju123@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Matthias van de Meent <boekewurm+postgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Julien Rouhaud <rjuju123@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Julien Rouhaud <rjuju123@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Matthias van de Meent <boekewurm+postgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Julien Rouhaud <rjuju123@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Julien Rouhaud <rjuju123@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Matthias van de Meent <boekewurm+postgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Nitin Jadhav <nitinjadhavpostgres@gmail.com>
Re: Report checkpoint progress with pg_stat_progress_checkpoint (was: Report checkpoint progress in server logs) Matthias van de Meent <boekewurm+postgres@gmail.com>
On Fri, Feb 25, 2022 at 08:53:50PM +0530, Nitin Jadhav wrote: > > > > I'm not sure what Matthias meant, but as far as I know there's no fundamental > > difference between checkpoint with and without the CHECKPOINT_IMMEDIATE flag, > > and there's also no scheduling for multiple checkpoints. > > > > Yes, the flags will remain the same but checkpoint.c will test both the passed > > flags and the shmem flags to see whether a delay should be added or not, which > > is the only difference in checkpoint processing for this flag. See the call to > > ImmediateCheckpointRequested() which will look at the value in shmem: > > > > /* > > * Perform the usual duties and take a nap, unless we're behind schedule, > > * in which case we just try to catch up as quickly as possible. > > */ > > if (!(flags & CHECKPOINT_IMMEDIATE) && > > !ShutdownRequestPending && > > !ImmediateCheckpointRequested() && > > IsCheckpointOnSchedule(progress)) > > I understand that the checkpointer considers flags as well as the > shmem flags and if CHECKPOINT_IMMEDIATE flag is set, it affects the > current checkpoint operation (No further delay) but does not change > the current flag value. Should we display this change in the kind > field of the view or not? Please share your thoughts. I think the fields should be added. It's good to know that a checkpoint was trigger due to normal activity and should be spreaded, and then something upgraded it to an immediate checkpoint. If you're desperately waiting for the end of a checkpoint for some reason and ask for an immediate checkpoint, you'll certainly be happy to see that the checkpointer is aware of it. But maybe I missed something in the code, so let's wait for Matthias input about it.
В списке pgsql-hackers по дате отправления