Hello,
Here's a rebase of a refactoring patch that got lost behind a filing
cabinet on another thread even though there seemed to be some
agreement that we probably want something like this[1]. It introduces
a new type SegmentNumber, instead of using BlockNumber to represent
segment numbers.
[1] https://www.postgresql.org/message-id/flat/