forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd6f9b2c
committed
Fix possible failure to send final transaction counts to stats collector.
Normally, we suppress sending a tabstats message to the collector unlessthere were some actual table stats to send. However, during backend exitwe should force out the message if there are any transaction commit/abortcounts to send, else the session's last few commit/abort counts will neverget reported at all. We had logic for this, but the short-circuit testat the top of pgstat_report_stat() ignored the "force" flag, with theconsequence that session-ending transactions that touched no database-localtables would not get counted. Seems to be an oversight in my commit641912b, which added the "force" flag.That was back in 8.3, so back-patch to all supported versions.1 parent69c0265 commitd6f9b2c
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
682 | 682 | | |
683 | 683 | | |
684 | 684 | | |
685 | | - | |
686 | | - | |
| 685 | + | |
| 686 | + | |
687 | 687 | | |
688 | 688 | | |
689 | 689 | | |
| |||
0 commit comments
Comments
(0)