~aglenyoung/+junk/postgres-9.3-dtrace

« back to all changes in this revision

Viewing changes to src/backend/access/transam/xact.c

  • Committer: Package Import Robot
  • Author(s): Martin Pitt, Christoph Berg, Martin Pitt
  • Date: 2013-06-26 15:13:32 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20130626151332-p34yjpn0txbdsdzd
Tags: 9.3~beta2-1
[ Christoph Berg ]
* hurd-i386: Ignore testsuite failures so we have a working libpq5 (they
  don't implement semaphores so the server won't even start).
* Mark postgresql-9.3 as beta in the description, suggested by Joshua D.
  Drake.

[ Martin Pitt ]
* New upstream release 9.3 beta2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1024
1024
                 *
1025
1025
                 * It's safe to change the delayChkpt flag of our own backend without
1026
1026
                 * holding the ProcArrayLock, since we're the only one modifying it.
1027
 
                 * This makes checkpoint's determination of which xacts are delayChkpt a
1028
 
                 * bit fuzzy, but it doesn't matter.
 
1027
                 * This makes checkpoint's determination of which xacts are delayChkpt
 
1028
                 * a bit fuzzy, but it doesn't matter.
1029
1029
                 */
1030
1030
                START_CRIT_SECTION();
1031
1031
                MyPgXact->delayChkpt = true;
4683
4683
         * from the template database, and then commit the transaction. If we
4684
4684
         * crash after all the files have been copied but before the commit, you
4685
4685
         * have files in the data directory without an entry in pg_database. To
4686
 
         * minimize the window
4687
 
         * for that, we use ForceSyncCommit() to rush the commit record to disk as
4688
 
         * quick as possible. We have the same window during recovery, and forcing
4689
 
         * an XLogFlush() (which updates minRecoveryPoint during recovery) helps
4690
 
         * to reduce that problem window, for any user that requested
4691
 
         * ForceSyncCommit().
 
4686
         * minimize the window for that, we use ForceSyncCommit() to rush the
 
4687
         * commit record to disk as quick as possible. We have the same window
 
4688
         * during recovery, and forcing an XLogFlush() (which updates
 
4689
         * minRecoveryPoint during recovery) helps to reduce that problem window,
 
4690
         * for any user that requested ForceSyncCommit().
4692
4691
         */
4693
4692
        if (XactCompletionForceSyncCommit(xinfo))
4694
4693
                XLogFlush(lsn);