From: | Peter Geoghegan <pg(at)bowt(dot)ie> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Remove unneeded argument from _bt_getstackbuf(). |
Date: | 2019-02-26 01:49:16 |
Message-ID: | E1gyRrw-0006L8-HJ@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Remove unneeded argument from _bt_getstackbuf().
_bt_getstackbuf() is called at exactly two points following commit
efada2b8e92 (one call site is concerned with page splits, while the
other is concerned with page deletion). The parent buffer returned by
_bt_getstackbuf() is write-locked in both cases. Remove the 'access'
argument and make _bt_getstackbuf() assume that callers require a
write-lock.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/2ab23445bc6af517bddb40d8429146d8ff8d7ff4
Modified Files
--------------
src/backend/access/nbtree/nbtinsert.c | 11 ++++++-----
src/backend/access/nbtree/nbtpage.c | 2 +-
src/include/access/nbtree.h | 2 +-
3 files changed, 8 insertions(+), 7 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Kapila | 2019-02-26 01:59:36 | Re: pgsql: Avoid creation of the free space map for small heap relations, t |
Previous Message | Peter Geoghegan | 2019-02-26 00:56:16 | pgsql: Correct obsolete nbtree page deletion comment. |