File tree 1 file changed +8
-3
lines changed
src/backend/access/transam
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 10
10
*
11
11
*
12
12
* IDENTIFICATION
13
- * $PostgreSQL: pgsql/src/backend/access/transam/xact.c,v 1.291 2010/05/13 11:39:30 sriggs Exp $
13
+ * $PostgreSQL: pgsql/src/backend/access/transam/xact.c,v 1.292 2010/06/29 18:44:58 momjian Exp $
14
14
*
15
15
*-------------------------------------------------------------------------
16
16
*/
@@ -1028,7 +1028,7 @@ RecordTransactionCommit(void)
1028
1028
if (XactSyncCommit || forceSyncCommit || haveNonTemp )
1029
1029
{
1030
1030
/*
1031
- * Synchronous commit case.
1031
+ * Synchronous commit case:
1032
1032
*
1033
1033
* Sleep before flush! So we can flush more than one commit records
1034
1034
* per single fsync. (The idea is some other backend may do the
@@ -1054,7 +1054,12 @@ RecordTransactionCommit(void)
1054
1054
else
1055
1055
{
1056
1056
/*
1057
- * Asynchronous commit case.
1057
+ * Asynchronous commit case:
1058
+ *
1059
+ * This enables possible committed transaction loss in the case of a
1060
+ * postmaster crash because WAL buffers are left unwritten.
1061
+ * Ideally we could issue the WAL write without the fsync, but
1062
+ * some wal_sync_methods do not allow separate write/fsync.
1058
1063
*
1059
1064
* Report the latest async commit LSN, so that the WAL writer knows to
1060
1065
* flush this commit.
You can’t perform that action at this time.
0 commit comments