Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 31c7fb4

Browse files
Fix obsolete FSM remarks in nbtree README.
The free space map has used a dedicated relation fork rather than shared memory segments for over a decade.
1 parent 890d218 commit 31c7fb4

File tree

1 file changed

+5
-8
lines changed
  • src/backend/access/nbtree

1 file changed

+5
-8
lines changed

src/backend/access/nbtree/README

+5-8
Original file line numberDiff line numberDiff line change
@@ -347,14 +347,11 @@ guaranteed to be "visible to everyone". As collateral damage, this
347347
implementation also waits for running XIDs with no snapshots and for
348348
snapshots taken until the next transaction to allocate an XID commits.
349349

350-
Reclaiming a page doesn't actually change its state on disk --- we simply
351-
record it in the shared-memory free space map, from which it will be
352-
handed out the next time a new page is needed for a page split. The
353-
deleted page's contents will be overwritten by the split operation.
354-
(Note: if we find a deleted page with an extremely old transaction
355-
number, it'd be worthwhile to re-mark it with FrozenTransactionId so that
356-
a later xid wraparound can't cause us to think the page is unreclaimable.
357-
But in more normal situations this would be a waste of a disk write.)
350+
Reclaiming a page doesn't actually change the state of the page --- we
351+
simply record it in the free space map, from which it will be handed out
352+
the next time a new page is needed for a page split. The deleted page's
353+
contents will be overwritten by the split operation (it will become the
354+
new right page).
358355

359356
Because we never delete the rightmost page of any level (and in particular
360357
never delete the root), it's impossible for the height of the tree to

0 commit comments

Comments
 (0)