Commit 39bed3b3 authored by Tom Lane's avatar Tom Lane

Standalone backends need pgstat_bestart() too, per Qingqing Zhou.

parent a5606579
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * 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) ...@@ -522,7 +522,7 @@ InitPostgres(const char *dbname, const char *username)
InitializeClientEncoding(); InitializeClientEncoding();
/* initialize statistics collection for this backend */ /* initialize statistics collection for this backend */
if (IsUnderPostmaster) if (!bootstrap)
pgstat_bestart(); pgstat_bestart();
/* close the transaction we started above */ /* close the transaction we started above */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment