Skip to content

Commit 9745f93

Browse files
committed
1 parent 5f1b826 commit 9745f93

File tree

1 file changed

+11
-10
lines changed
  • src/backend/access/transam

1 file changed

+11
-10
lines changed

src/backend/access/transam/xlog.c

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6297,16 +6297,17 @@ StartupXLOG(void)
62976297

62986298
/*----------
62996299
* If we previously crashed, perform a couple of actions:
6300-
* - The pg_wal directory may still include some temporary WAL segments
6301-
* used when creating a new segment, so perform some clean up to not
6302-
* bloat this path. This is done first as there is no point to sync this
6303-
* temporary data.
6304-
* - There might be data which we had written, intending to fsync it,
6305-
* but which we had not actually fsync'd yet. Therefore, a power failure
6306-
* in the near future might cause earlier unflushed writes to be lost,
6307-
* even though more recent data written to disk from here on would be
6308-
* persisted. To avoid that, fsync the entire data directory.
6309-
*---------
6300+
*
6301+
* - The pg_wal directory may still include some temporary WAL segments
6302+
* used when creating a new segment, so perform some clean up to not
6303+
* bloat this path. This is done first as there is no point to sync
6304+
* this temporary data.
6305+
*
6306+
* - There might be data which we had written, intending to fsync it, but
6307+
* which we had not actually fsync'd yet. Therefore, a power failure in
6308+
* the near future might cause earlier unflushed writes to be lost, even
6309+
* though more recent data written to disk from here on would be
6310+
* persisted. To avoid that, fsync the entire data directory.
63106311
*/
63116312
if (ControlFile->state != DB_SHUTDOWNED &&
63126313
ControlFile->state != DB_SHUTDOWNED_IN_RECOVERY)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy