pgsql: Retry after buffer locking failure during SPGiST index creation.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Retry after buffer locking failure during SPGiST index creation.
Date: 2013-11-02 20:46:38
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/a1c3d54fb6b9fd974fa4d0166bfd1fde30c8d8c2

Modified Files
--------------
src/backend/access/spgist/spgdoinsert.c | 9 ++++++---
src/backend/access/spgist/spginsert.c | 15 +++++++++++----
2 files changed, 17 insertions(+), 7 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Kevin Grittner 2013-11-02 23:40:42 pgsql: Fix subquery reference to non-populated MV in CMV.
Previous Message Tom Lane 2013-11-01 20:10:41 pgsql: Ensure all files created for a single BufFile have the same reso