Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
a103b76
Add function to map over all timestamps
arpad-m Oct 7, 2023
184f266
Add get_time_range_by_lsn endpoint
arpad-m Oct 7, 2023
60e5777
Add tests
arpad-m Oct 7, 2023
24d56ed
Fix API spec yml
arpad-m Oct 7, 2023
b35b2e7
Configurable step size and fix SQL injection ability
arpad-m Oct 7, 2023
e2084ae
Add median as well
arpad-m Oct 10, 2023
4ba7744
More tests
arpad-m Oct 10, 2023
4a8031e
more
arpad-m Oct 10, 2023
381e286
Merge branch 'main' into arpad/ts_by_lsn
shanyp Oct 10, 2023
dd9769d
make clippy happy
shanyp Oct 10, 2023
00e1010
Enable synchronous commit
arpad-m Oct 10, 2023
34586de
Return runtime errors
arpad-m Oct 10, 2023
fdf4fca
Review comment
arpad-m Oct 10, 2023
07fcfb7
newlines
arpad-m Oct 10, 2023
ebdcb4a
Merge remote-tracking branch 'origin/main' into arpad/ts_by_lsn
arpad-m Oct 16, 2023
a72c339
Use a struct instead of the json macro and return a 404 status
arpad-m Oct 16, 2023
8d1ccf4
Update API spec and test
arpad-m Oct 16, 2023
6bc3a58
Use duration_since not elapsed
arpad-m Oct 17, 2023
72467b1
Only return one value instead of a range
arpad-m Oct 18, 2023
c6fecef
Remove test
arpad-m Oct 18, 2023
ac95bca
fix test
arpad-m Oct 18, 2023
33e1a48
Make clippy happy
arpad-m Oct 18, 2023
fc017bf
Use strptime to be Python 3.9 compatible
arpad-m Oct 18, 2023
f136d71
Adjust descriptions in yaml
arpad-m Oct 18, 2023
d9b3765
Rename API call to be consistent with get_lsn_by_timestamp
arpad-m Oct 18, 2023
ca84f2c
fix strptime to support nanoseconds
shanyp Oct 18, 2023
ebea344
Merge branch 'main' into arpad/ts_by_lsn
shanyp Oct 18, 2023
f6946e9
Make test more robust
arpad-m Oct 19, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
more
  • Loading branch information
arpad-m committed Oct 10, 2023
commit 4a8031ed3f8910499e1cda26498ff5c7630873cb
1 change: 1 addition & 0 deletions pageserver/src/pgdatadir_mapping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1704,6 +1704,7 @@ mod tests {
#[test]
fn test_median_ts() {
assert_eq!(median_ts(&mut [1]), 1);
assert_eq!(median_ts(&mut [12; 10]), 12);
assert_eq!(median_ts(&mut [0, 1, 2, 3, 9]), 2);
assert_eq!(median_ts(&mut [9, 2, 0, 3, 1]), 2);
assert_eq!(median_ts(&mut [0, 0, 10, 20, 30, 40]), 15);
Expand Down