]> granicus.if.org Git - postgresql/commitdiff
Standalone backends need pgstat_bestart() too, per Qingqing Zhou.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 22 Jun 2006 14:36:12 +0000 (14:36 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 22 Jun 2006 14:36:12 +0000 (14:36 +0000)
src/backend/utils/init/postinit.c

index 5294cf004028c7ca562d71e99d931312b4f471ae..d055129083f15d20491e4db83ab519e55f42a43c 100644 (file)
@@ -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 */