Retry after buffer locking failure during SPGiST index creation.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 24ace4053d42e2c48af8c15d598622e488fb9502
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2013-11-02T20:45:42Z
Releases: 9.4.0
Retry after buffer locking failure during SPGiST index creation.

The original coding thought this case was impossible, but it can happen
if the bgwriter or checkpointer processes decide to write out an index
page while creation is still proceeding, leading to a bogus "unexpected
spgdoinsert() failure" error.  Problem reported by Jonathan S. Katz.

Teodor Sigaev

Files