pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Use WaitLatch() instead of pg_usleep() at end-of-vacuum truncati
2+ messages / 1 participants
[nested] [flat]

* pgsql: Use WaitLatch() instead of pg_usleep() at end-of-vacuum truncati
@ 2021-07-02 04:10  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Paquier @ 2021-07-02 04:10 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Use WaitLatch() instead of pg_usleep() at end-of-vacuum truncation

This has the advantage to make a process more responsive when the
postmaster dies, even if the wait time was rather limited as there was
only a 50ms timeout here.  Another advantage of this change is for
monitoring, as we gain a new wait event for the end-of-vacuum
truncation.

Author: Bharath Rupireddy
Reviewed-by: Aleksander Alekseev, Thomas Munro, Michael Paquier
Discussion: https://postgr.es/m/CALj2ACU4AdPCq6NLfcA-ZGwX7pPCK5FgEj-CAU0xCKzkASSy_A@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/70685385d70f8da73ab189a72f46311091ff09be

Modified Files
--------------
doc/src/sgml/monitoring.sgml            | 5 +++++
src/backend/access/heap/vacuumlazy.c    | 6 +++++-
src/backend/utils/activity/wait_event.c | 3 +++
src/include/utils/wait_event.h          | 3 ++-
4 files changed, 15 insertions(+), 2 deletions(-)



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

* pgsql: Use WaitLatch() instead of pg_usleep() at the end of backups
@ 2021-07-05 23:36  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Paquier @ 2021-07-05 23:36 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Use WaitLatch() instead of pg_usleep() at the end of backups

This concerns pg_stop_backup() and BASE_BACKUP, when waiting for the
WAL segments required for a backup to be archived.  This simplifies a
bit the handling of the wait event used in this code path.

Author: Bharath Rupireddy
Reviewed-by: Michael Paquier, Stephen Frost
Discussion: https://postgr.es/m/CALj2ACU4AdPCq6NLfcA-ZGwX7pPCK5FgEj-CAU0xCKzkASSy_A@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2aca19f2989aa938ece7306678f5494a984ece3f

Modified Files
--------------
src/backend/access/transam/xlog.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)



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


end of thread, other threads:[~2021-07-05 23:36 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-07-02 04:10 pgsql: Use WaitLatch() instead of pg_usleep() at end-of-vacuum truncati Michael Paquier <michael@paquier.xyz>
2021-07-05 23:36 pgsql: Use WaitLatch() instead of pg_usleep() at the end of backups Michael Paquier <michael@paquier.xyz>

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