diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-05-27 05:37:50 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-05-27 05:37:50 +0000 |
| commit | 8d675c85c58065076b673ea8ee61fa1285748ee3 (patch) | |
| tree | c7ac138248ac058c3f93f4dba27276e33958b5ef /src/include/pgstat.h | |
| parent | 77947c51c08179b8bc12347a7fbcb2c8d7908302 (diff) | |
| download | postgresql-8d675c85c58065076b673ea8ee61fa1285748ee3.tar.gz | |
pgstat's on-proc-exit hook has to execute after the last transaction commit
or abort within a backend; rearrange InitPostgres processing to make it so.
Revealed by just-added Asserts along with ECPG regression tests (hm, I wonder
why the core regression tests didn't expose it?). This possibly is another
reason for missing stats updates ...
Diffstat (limited to 'src/include/pgstat.h')
| -rw-r--r-- | src/include/pgstat.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/pgstat.h b/src/include/pgstat.h index 476fd47dc7..02010c7d89 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.59 2007/05/27 03:50:39 tgl Exp $ + * $PostgreSQL: pgsql/src/include/pgstat.h,v 1.60 2007/05/27 05:37:50 tgl Exp $ * ---------- */ #ifndef PGSTAT_H @@ -501,7 +501,9 @@ extern void pgstat_report_analyze(Oid tableoid, bool shared, PgStat_Counter livetuples, PgStat_Counter deadtuples); +extern void pgstat_initialize(void); extern void pgstat_bestart(void); + extern void pgstat_report_activity(const char *what); extern void pgstat_report_txn_timestamp(TimestampTz tstamp); extern void pgstat_report_waiting(bool waiting); |
