pgsql: Remove redundant call to pgstat_report_wal() - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: Remove redundant call to pgstat_report_wal()
Date
Msg-id E1oQKct-000mqO-Ox@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Remove redundant call to pgstat_report_wal()

pgstat_report_stat() will be called before shutdown so an explicit call to
pgstat_report_wal() just before shutdown is redundant.

This likely was not redundant before 5891c7a8ed8, but now it clearly is.

Author: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion:
https://www.postgresql.org/message-id/CAAKRu_aaq33UnG4TXq3S-OSXGWj1QGf0sU%2BECH4tNwGFNERkZA%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1bdd54e662d58ed49448255a004b668b56bae100

Modified Files
--------------
src/backend/postmaster/walwriter.c | 11 -----------
1 file changed, 11 deletions(-)


pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: pgsql: pgstat: Acquire lock when reading variable-numbered stats
Next
From: Andres Freund
Date:
Subject: pgsql: Don't define FRONTEND for libpq