Ensure that top level aborts call XLogSetAsyncCommit(). Not doing
authorSimon Riggs <simon@2ndQuadrant.com>
Thu, 13 May 2010 11:39:30 +0000 (11:39 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Thu, 13 May 2010 11:39:30 +0000 (11:39 +0000)
commit463f151a23242c531890589db3692077aadb05ca
tree5aa93239777921a314f88358bdaa842ae3f2462b
parent8431e296ea4cfc8dd30053f89b6970ef16ddbc61
Ensure that top level aborts call XLogSetAsyncCommit(). Not doing
so simply leads to data waiting in wal_buffers which then causes
later commits to potentially do emergency writes and for all forms
of replication to be potentially delayed without need or benefit.
Issue pointed out exactly by Fujii Masao, following bug report
by Robert Haas on a separate though related topic.
src/backend/access/transam/xact.c