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

tests: Make neon_xlogflush() flush all WAL, if you omit the LSN arg #8215

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

hlinnaka
Copy link
Contributor

This makes it much more convenient to use in the common case that you want to flush all the WAL. (Passing pg_current_wal_insert_lsn() as the argument doesn't work for the same reasons as explained in the comments: we need to be back off to the beginning of a page if the previous record ended at page boundary.)

I plan to use this to fix the issue that Arseny Sher called out at #7288 (comment)

@hlinnaka hlinnaka requested a review from a team as a code owner June 30, 2024 21:54
Copy link

github-actions bot commented Jun 30, 2024

3000 tests run: 2885 passed, 0 failed, 115 skipped (full report)


Code coverage* (full report)

  • functions: 32.7% (6915 of 21129 functions)
  • lines: 50.1% (54203 of 108195 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
020e368 at 2024-07-01T12:07:42.480Z :recycle:

@hlinnaka hlinnaka enabled auto-merge (squash) June 30, 2024 23:57
pgxn/neon_test_utils/neontest.c Outdated Show resolved Hide resolved
@hlinnaka hlinnaka disabled auto-merge July 1, 2024 09:36
@hlinnaka hlinnaka requested a review from knizhnik July 1, 2024 09:36
@hlinnaka hlinnaka enabled auto-merge (squash) July 1, 2024 09:37
@hlinnaka
Copy link
Contributor Author

hlinnaka commented Jul 1, 2024

I pushed this as 75c84c8, as part of PR #7288. This PR is now just a comment improvement, which I missed in that commit.

@hlinnaka hlinnaka merged commit 0789160 into main Jul 1, 2024
64 checks passed
@hlinnaka hlinnaka deleted the improve-neon_xlogflush branch July 1, 2024 15:55
VladLazar pushed a commit that referenced this pull request Jul 8, 2024
…8215)

This makes it much more convenient to use in the common case that you
want to flush all the WAL. (Passing pg_current_wal_insert_lsn() as the
argument doesn't work for the same reasons as explained in the comments:
we need to be back off to the beginning of a page if the previous record
ended at page boundary.)

I plan to use this to fix the issue that Arseny Sher called out at
#7288 (comment)
VladLazar pushed a commit that referenced this pull request Jul 8, 2024
…8215)

This makes it much more convenient to use in the common case that you
want to flush all the WAL. (Passing pg_current_wal_insert_lsn() as the
argument doesn't work for the same reasons as explained in the comments:
we need to be back off to the beginning of a page if the previous record
ended at page boundary.)

I plan to use this to fix the issue that Arseny Sher called out at
#7288 (comment)
VladLazar pushed a commit that referenced this pull request Jul 8, 2024
…8215)

This makes it much more convenient to use in the common case that you
want to flush all the WAL. (Passing pg_current_wal_insert_lsn() as the
argument doesn't work for the same reasons as explained in the comments:
we need to be back off to the beginning of a page if the previous record
ended at page boundary.)

I plan to use this to fix the issue that Arseny Sher called out at
#7288 (comment)
VladLazar pushed a commit that referenced this pull request Jul 8, 2024
…8215)

This makes it much more convenient to use in the common case that you
want to flush all the WAL. (Passing pg_current_wal_insert_lsn() as the
argument doesn't work for the same reasons as explained in the comments:
we need to be back off to the beginning of a page if the previous record
ended at page boundary.)

I plan to use this to fix the issue that Arseny Sher called out at
#7288 (comment)
VladLazar pushed a commit that referenced this pull request Jul 8, 2024
…8215)

This makes it much more convenient to use in the common case that you
want to flush all the WAL. (Passing pg_current_wal_insert_lsn() as the
argument doesn't work for the same reasons as explained in the comments:
we need to be back off to the beginning of a page if the previous record
ended at page boundary.)

I plan to use this to fix the issue that Arseny Sher called out at
#7288 (comment)
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.

3 participants