Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 39bed3b

Browse files
committed
Standalone backends need pgstat_bestart() too, per Qingqing Zhou.
1 parent a560657 commit 39bed3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/init/postinit.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/utils/init/postinit.c,v 1.167 2006/05/04 18:51:36 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/utils/init/postinit.c,v 1.168 2006/06/22 14:36:12 tgl Exp $
1212
*
1313
*
1414
*-------------------------------------------------------------------------
@@ -522,7 +522,7 @@ InitPostgres(const char *dbname, const char *username)
522522
InitializeClientEncoding();
523523

524524
/* initialize statistics collection for this backend */
525-
if (IsUnderPostmaster)
525+
if (!bootstrap)
526526
pgstat_bestart();
527527

528528
/* close the transaction we started above */

0 commit comments

Comments
 (0)