Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize vector get last written LSN #10360

Merged
merged 5 commits into from
Jan 14, 2025
Merged

Optimize vector get last written LSN #10360

merged 5 commits into from
Jan 14, 2025

Conversation

knizhnik
Copy link
Contributor

@knizhnik knizhnik commented Jan 12, 2025

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

Copy link

github-actions bot commented Jan 12, 2025

7304 tests run: 6933 passed, 0 failed, 371 skipped (full report)


Flaky tests (2)

Postgres 17

Postgres 15

  • test_physical_replication_config_mismatch_max_locks_per_transaction: release-arm64

Code coverage* (full report)

  • functions: 32.7% (8080 of 24696 functions)
  • lines: 47.9% (67609 of 141088 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
ad90824 at 2025-01-13T21:14:26.565Z :recycle:

vendor/postgres-v17 Show resolved Hide resolved
vendor/postgres-v17 Show resolved Hide resolved
@knizhnik knizhnik added this pull request to the merge queue Jan 14, 2025
Merged via the queue into main with commit a039f83 Jan 14, 2025
84 checks passed
@knizhnik knizhnik deleted the lwlsn_optimization branch January 14, 2025 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants