aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/init/postinit.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-06-22 14:36:12 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-06-22 14:36:12 +0000
commit39bed3b388b7c0e3c9f9218629f23ccc31c47815 (patch)
treeb5c8e552a58c2657550fd9f08a58bb195daff012 /src/backend/utils/init/postinit.c
parenta5606579fc16d778a9331ecb95da45ae7c25654d (diff)
downloadpostgresql-39bed3b388b7c0e3c9f9218629f23ccc31c47815.tar.gz
postgresql-39bed3b388b7c0e3c9f9218629f23ccc31c47815.zip
Standalone backends need pgstat_bestart() too, per Qingqing Zhou.
Diffstat (limited to 'src/backend/utils/init/postinit.c')
-rw-r--r--src/backend/utils/init/postinit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c
index 5294cf00402..d055129083f 100644
--- a/src/backend/utils/init/postinit.c
+++ b/src/backend/utils/init/postinit.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/init/postinit.c,v 1.167 2006/05/04 18:51:36 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/init/postinit.c,v 1.168 2006/06/22 14:36:12 tgl Exp $
*
*
*-------------------------------------------------------------------------
@@ -522,7 +522,7 @@ InitPostgres(const char *dbname, const char *username)
InitializeClientEncoding();
/* initialize statistics collection for this backend */
- if (IsUnderPostmaster)
+ if (!bootstrap)
pgstat_bestart();
/* close the transaction we started above */