mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-26 09:30:37 +00:00
1. Use `max(find_lsn_for_timestamp, ancestor_lsn)` as a lower boundary for search. We use this method to figure out the branching LSN for new branch, but GC cutoff could be before branching point and we cannot create new branch with LSN < `ancestor_lsn`. 2. Search for the first commit **before** specified timestamp. This solves two drawbacks: i) newly created branch won't contain physical changes from later commits that will be marked as aborted, and will need to be vacuumed away; and ii) we can still figure out a reasonable branching LSN if there were no new commits since the specified timestamp. 3. Change `get_lsn_by_timestamp` API method to return LSN even if we only found commit **before** the specified timestamp. Resolves #3414