Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
b57ddccf
Commit
b57ddccf
authored
Jun 29, 2010
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add C comment about why synchronous_commit=off behavior can lose
committed transactions in a postmaster crash.
parent
89474cc3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
src/backend/access/transam/xact.c
src/backend/access/transam/xact.c
+8
-3
No files found.
src/backend/access/transam/xact.c
View file @
b57ddccf
...
...
@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/access/transam/xact.c,v 1.29
1 2010/05/13 11:39:30 sriggs
Exp $
* $PostgreSQL: pgsql/src/backend/access/transam/xact.c,v 1.29
2 2010/06/29 18:44:58 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1028,7 +1028,7 @@ RecordTransactionCommit(void)
if
(
XactSyncCommit
||
forceSyncCommit
||
haveNonTemp
)
{
/*
* Synchronous commit case
.
* Synchronous commit case
:
*
* Sleep before flush! So we can flush more than one commit records
* per single fsync. (The idea is some other backend may do the
...
...
@@ -1054,7 +1054,12 @@ RecordTransactionCommit(void)
else
{
/*
* Asynchronous commit case.
* Asynchronous commit case:
*
* This enables possible committed transaction loss in the case of a
* postmaster crash because WAL buffers are left unwritten.
* Ideally we could issue the WAL write without the fsync, but
* some wal_sync_methods do not allow separate write/fsync.
*
* Report the latest async commit LSN, so that the WAL writer knows to
* flush this commit.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment