aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2013-02-07 14:44:10 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2013-02-07 14:44:10 -0500
commit89b81f0d8b7cfaf8f317b09b43a030725c7d71de (patch)
treec0ef4f64ca9682f5c8c0ca83c51bccf370547224 /src/backend/access/gist
parentacf290dfbc947e22ad48c95fe41413b89b555432 (diff)
downloadpostgresql-89b81f0d8b7cfaf8f317b09b43a030725c7d71de.tar.gz
postgresql-89b81f0d8b7cfaf8f317b09b43a030725c7d71de.zip
Fix possible failure to send final transaction counts to stats collector.
Normally, we suppress sending a tabstats message to the collector unless there were some actual table stats to send. However, during backend exit we should force out the message if there are any transaction commit/abort counts to send, else the session's last few commit/abort counts will never get reported at all. We had logic for this, but the short-circuit test at the top of pgstat_report_stat() ignored the "force" flag, with the consequence that session-ending transactions that touched no database-local tables would not get counted. Seems to be an oversight in my commit 641912b4d17fd214a5e5bae4e7bb9ddbc28b144b, which added the "force" flag. That was back in 8.3, so back-patch to all supported versions.
Diffstat (limited to 'src/backend/access/gist')
0 files changed, 0 insertions, 0 deletions