aboutsummaryrefslogtreecommitdiff
path: root/src/include/pgstat.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-05-27 17:28:36 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-05-27 17:28:36 +0000
commit97d12b434f53f2c00ee94cde41ccf76a8ef4d19e (patch)
treed3cc05a7589bd59dae1cf2859fb077afaf95b577 /src/include/pgstat.h
parenta0c366d5a1ead1a48a417e2e14fe2e6c6e5770c1 (diff)
downloadpostgresql-97d12b434f53f2c00ee94cde41ccf76a8ef4d19e.tar.gz
postgresql-97d12b434f53f2c00ee94cde41ccf76a8ef4d19e.zip
Ooops, I was too busy worrying about getting the transactional infrastructure
right to think carefully about how insert and delete counts map to n_live_tuples. Of course a deletion should reduce n_live_tuples.
Diffstat (limited to 'src/include/pgstat.h')
-rw-r--r--src/include/pgstat.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/pgstat.h b/src/include/pgstat.h
index 02010c7d89b..ff050e6e451 100644
--- a/src/include/pgstat.h
+++ b/src/include/pgstat.h
@@ -5,7 +5,7 @@
*
* Copyright (c) 2001-2007, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/include/pgstat.h,v 1.60 2007/05/27 05:37:50 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/pgstat.h,v 1.61 2007/05/27 17:28:36 tgl Exp $
* ----------
*/
#ifndef PGSTAT_H
@@ -58,6 +58,7 @@ typedef int64 PgStat_Counter;
* tuples_inserted/tuples_updated/tuples_deleted count attempted actions,
* regardless of whether the transaction committed. new_live_tuples and
* new_dead_tuples are properly adjusted depending on commit or abort.
+ * Note that new_live_tuples can be negative!
* ----------
*/
typedef struct PgStat_TableCounts