diff options
| author | Andres Freund | 2021-11-19 16:43:12 +0000 |
|---|---|---|
| committer | Andres Freund | 2021-11-19 16:43:12 +0000 |
| commit | 3b34645678d1a516c148e3e27c26325708e92f6f (patch) | |
| tree | 4fb30c5710d9225ad9e49578469d3bf0f891153b | |
| parent | 0f0cfb494004befb0f6e89d3129347869420c509 (diff) | |
Initialize backend status reporting during bootstrap.
This allows a later commit to reduce the number of branches in performance
sensitive functions during normal running, compared to a very minor saving
during bootstrapping.
Author: Melanie Plageman <[email protected]>
Reviewed-By: Andres Freund <[email protected]>
Discussion: https://postgr.es/m/CAAKRu_Yeg+vh6SHNEo1+=O7e-BPX35cU0XQM=YwQRnkFyv_y+w@mail.gmail.com
| -rw-r--r-- | src/backend/utils/init/postinit.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c index 0c56c38a141..646126edee5 100644 --- a/src/backend/utils/init/postinit.c +++ b/src/backend/utils/init/postinit.c @@ -676,8 +676,7 @@ InitPostgres(const char *in_dbname, Oid dboid, const char *username, EnablePortalManager(); /* Initialize status reporting */ - if (!bootstrap) - pgstat_beinit(); + pgstat_beinit(); /* * Load relcache entries for the shared system catalogs. This must create |
