File tree 1 file changed +5
-8
lines changed
src/backend/access/nbtree
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -347,14 +347,11 @@ guaranteed to be "visible to everyone". As collateral damage, this
347
347
implementation also waits for running XIDs with no snapshots and for
348
348
snapshots taken until the next transaction to allocate an XID commits.
349
349
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).
358
355
359
356
Because we never delete the rightmost page of any level (and in particular
360
357
never delete the root), it's impossible for the height of the tree to
You can’t perform that action at this time.
0 commit comments