1010 *
1111 *
1212 * 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 $
1414 *
1515 *-------------------------------------------------------------------------
1616 */
@@ -1028,7 +1028,7 @@ RecordTransactionCommit(void)
10281028if (XactSyncCommit || forceSyncCommit || haveNonTemp )
10291029{
10301030/*
1031- * Synchronous commit case.
1031+ * Synchronous commit case:
10321032 *
10331033 * Sleep before flush! So we can flush more than one commit records
10341034 * per single fsync. (The idea is some other backend may do the
@@ -1054,7 +1054,12 @@ RecordTransactionCommit(void)
10541054else
10551055{
10561056/*
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.
10581063 *
10591064 * Report the latest async commit LSN, so that the WAL writer knows to
10601065 * flush this commit.