pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Correct obsolete nbtree page split WAL comment.
2+ messages / 1 participants
[nested] [flat]

* pgsql: Correct obsolete nbtree page split WAL comment.
@ 2019-03-04 20:37 Peter Geoghegan <pg@bowt.ie>
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Geoghegan @ 2019-03-04 20:37 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Correct obsolete nbtree page split WAL comment.

Commit 2c03216d831, which revamped the WAL record format, failed to
update a comment referencing the old API.  Update the comment.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/72c7c4e38610297b200721a7d5201f79e7ceef7c

Modified Files
--------------
src/backend/access/nbtree/nbtinsert.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Correct obsolete nbtree page split comment.
@ 2019-03-12 23:44 Peter Geoghegan <pg@bowt.ie>
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Geoghegan @ 2019-03-12 23:44 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Correct obsolete nbtree page split comment.

Commit 40dae7ec537, which made the nbtree page split algorithm more
robust, made _bt_insert_parent() only unlock the right child of the
parent page before inserting a new downlink into the parent.  Update a
comment from the Berkeley days claiming that both left and right child
pages are unlocked before the new downlink actually gets inserted.

The claim that it is okay to release both locks early based on Lehman
and Yao's say-so never made much sense.  Lehman and Yao must sometimes
"couple" buffer locks across a pair of internal pages when relocating a
downlink, unlike the corresponding code within _bt_getstack().

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3f34283973a342aa1cb709d6e8f5cea430efcf29

Modified Files
--------------
src/backend/access/nbtree/nbtinsert.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2019-03-12 23:44 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-03-04 20:37 pgsql: Correct obsolete nbtree page split WAL comment. Peter Geoghegan <pg@bowt.ie>
2019-03-12 23:44 pgsql: Correct obsolete nbtree page split comment. Peter Geoghegan <pg@bowt.ie>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox