pgsql: Take buffer lock while inspecting btree index pages in contrib/p - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Take buffer lock while inspecting btree index pages in contrib/p
Date
Msg-id E1TeYgb-0005p4-OT@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Take buffer lock while inspecting btree index pages in contrib/pageinspect.

It's not safe to examine a shared buffer without any lock.

Branch
------
REL9_0_STABLE

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

Modified Files
--------------
contrib/pageinspect/btreefuncs.c |   20 +++++++++++---------
1 files changed, 11 insertions(+), 9 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Take buffer lock while inspecting btree index pages in contrib/p
Next
From: Alvaro Herrera
Date:
Subject: pgsql: Change test ExceptionalCondition to return void