Skip to content

Commit

Permalink
Optimize vector get last written LSN (#10360)
Browse files Browse the repository at this point in the history
## Problem

See #10281

pg17 performs extra lock/unlock operation when fetching LwLSN.

## Summary of changes

Perform all lookups under one lock, moving initialization of not found
keys to separate loop.

Related Postgres PR:
neondatabase/postgres#553

---------

Co-authored-by: Konstantin Knizhnik <[email protected]>
  • Loading branch information
knizhnik and Konstantin Knizhnik authored Jan 14, 2025
1 parent 430b556 commit a039f83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vendor/postgres-v17
2 changes: 1 addition & 1 deletion vendor/revisions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"v17": [
"17.2",
"9c9e9a78a93aebec2f6a2f54644442d35ffa245c"
"0f8da73ed08d4fc4ee58cccea008c75bfb20baa8"
],
"v16": [
"16.6",
Expand Down

1 comment on commit a039f83

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

7455 tests run: 7074 passed, 0 failed, 381 skipped (full report)


Flaky tests (4)

Postgres 17

Postgres 16

Postgres 14

Code coverage* (full report)

  • functions: 32.7% (8083 of 24696 functions)
  • lines: 47.9% (67620 of 141088 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
a039f83 at 2025-01-14T08:11:20.842Z :recycle:

Please sign in to comment.