Repository navigation
Add atomic operations to PostgresKvStore
#1429
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
Open
dahlia
wants to merge
12
commits into
fedify-dev:main
Choose a base branch
from
dahlia:feat/postgres/atomic-kv-store
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
4f82a6a
Add atomic PostgreSQL KV operations
dahlia 548b3fa
Allow PostgreSQL batch reads in read-only mode
dahlia b97cb51
Document PostgreSQL CAS deletion TTL rejection
dahlia 4145ad7
Resolve PostgreSQL backing table identifiers
dahlia d2e7cae
Reject PostgreSQL batches under active RLS
dahlia 1f0f8fe
Recognize expiry indexes on PostgreSQL 18.7
dahlia 685a6dd
Roll back trigger-skipped PostgreSQL batches
dahlia 940da1e
Validate PostgreSQL backing relations before writes
dahlia bfa1ac2
Keep PostgreSQL codec fixtures live during tests
dahlia f1696b5
Propagate PostgreSQL test holder setup failures
dahlia a1190b7
Roll back skipped single-key PostgreSQL CAS writes
dahlia 18fcb97
Clarify PostgreSQL CAS cleanup client scopes
dahlia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| --- | ||
| links: | ||
| '#1361': https://github.com/fedify-dev/fedify/issues/1361 | ||
| '#1364': https://github.com/fedify-dev/fedify/issues/1364 | ||
| '#1429': https://github.com/fedify-dev/fedify/pull/1429 | ||
| --- | ||
| - Added atomic multi-key snapshots, writes, deletions, and conditional updates | ||
| to `PostgresKvStore` through the `AtomicKvStore` interface. Conditional | ||
| batches and multi-key deletions require pooled or sequentially used | ||
| `READ COMMITTED` transaction clients; reserved clients reject these | ||
| scopes. Nonempty batches reject active row-level security to prevent | ||
| policies from filtering individual mutations. Mutating single-key `cas()` | ||
| calls also serialize table writes and roll back trigger-skipped matching | ||
| mutations instead of returning `false`. `PostgresKvStore.cas()` now | ||
| rejects a `ttl` option when deleting (`newValue` is `undefined`), where it | ||
| previously ignored the TTL. Omit `ttl` when deleting. | ||
| [[#1361], [#1364], [#1429]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.