]> granicus.if.org Git - postgresql/commit
In checkpoint, move the check for in-progress xacts out of critical section.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 4 Apr 2014 14:29:50 +0000 (17:29 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 4 Apr 2014 14:31:22 +0000 (17:31 +0300)
commitd9e7873bbbdee76a49e76ddaa49787cab112bb2e
tree7444a92e486cb257900f1dc78fe742e40b7ba26a
parent4a170ee9e0ebd7021cb1190fabd5b0cbe2effb8e
In checkpoint, move the check for in-progress xacts out of critical section.

GetVirtualXIDsDelayingChkpt calls palloc, which isn't safe in a critical
section. I thought I covered this case with the exemption for the
checkpointer, but CreateCheckPoint is also called from the startup process.
src/backend/access/transam/xlog.c