File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1237,9 +1237,10 @@ primary_slot_name = 'node_a_slot'
1237
1237
to <literal>always</literal>, and the standby will call the archive
1238
1238
command for every WAL segment it receives, whether it's by restoring
1239
1239
from the archive or by streaming replication. The shared archive can
1240
- be handled similarly, but the archive_command must test if the file
1241
- being archived exists already, and if the existing file has identical
1242
- contents. This requires more care in the archive_command, as it must
1240
+ be handled similarly, but the <varname>archive_command</varname> must
1241
+ test if the file being archived exists already, and if the existing file
1242
+ has identical contents. This requires more care in the
1243
+ <varname>archive_command</varname>, as it must
1243
1244
be careful to not overwrite an existing file with different contents,
1244
1245
but return success if the exactly same file is archived twice. And
1245
1246
all that must be done free of race conditions, if two servers attempt
Original file line number Diff line number Diff line change @@ -1645,6 +1645,10 @@ ServerLoop(void)
1645
1645
start_autovac_launcher = false; /* signal processed */
1646
1646
}
1647
1647
1648
+ /* If we have lost the stats collector, try to start a new one */
1649
+ if (PgStatPID == 0 && pmState == PM_RUN )
1650
+ PgStatPID = pgstat_start ();
1651
+
1648
1652
/*
1649
1653
* If we have lost the archiver, try to start a new one.
1650
1654
*
You can’t perform that action at this time.
0 commit comments