pgsql: Take buffer lock while inspecting btree index pages in contrib/p

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Take buffer lock while inspecting btree index pages in contrib/p
Date: 2012-11-30 22:03:53
Message-ID: E1TeYgb-0005pA-Rp@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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
------
REL8_3_STABLE

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

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

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2012-11-30 22:29:28 pgsql: Change test ExceptionalCondition to return void
Previous Message Bruce Momjian 2012-11-30 21:45:13 pgsql: Split initdb.c main() code into multiple functions, for easier