API to request the timestamp for given LSN #5468
Labels
c/storage/pageserver
Component: storage: pageserver
t/feature
Issue type: feature, for new features or requests
On slack, @xenomote has asked for an API for the pageserver to obtain the timestamp corresponding to a given LSN.
For the use case, they write:
The slack thread discusses either returning always also the timestamp in addition to the lsn, say for when we return
TimelineInfo
from/v1/tenant/{tenant_id}/timeline
, or alternatively providing an endpoint like/v1/tenant/{tenant_id}/timeline/{timeline_id}/get_lsn_by_timestamp
, just the other way around.@jcsp has pointed out that computing the timestamp might be non trivial and has suggested the following:
The text was updated successfully, but these errors were encountered: