smp server: store messages in PostgreSQL#1622
Merged
epoberezkin merged 16 commits intodb-messagesfrom Sep 11, 2025
Merged
Conversation
66b6a89 to
bfb0176
Compare
bfb0176 to
9ba7c3d
Compare
4a1eddf to
f1c73ba
Compare
f1c73ba to
3d61ab0
Compare
epoberezkin
commented
Sep 10, 2025
| unsafeRunStore :: StoreQueue s -> Text -> StoreMonad s a -> IO a | ||
|
|
||
| data MSType = MSMemory | MSJournal | ||
| -- default implementations are overridden for PostgreSQL storage of messages |
Member
Author
There was a problem hiding this comment.
moved into typeclass to redefine in PostgreSQL store
spaced4ndy
reviewed
Sep 11, 2025
| {-# INLINE recipientId #-} | ||
| queueRec = queueRec' | ||
| {-# INLINE queueRec #-} | ||
| withQueueLock PostgresQueue {} _ = id -- TODO [messages] maybe it's just transaction? |
Collaborator
There was a problem hiding this comment.
I think it may depend on configured transaction isolation
Member
Author
There was a problem hiding this comment.
not used, will just remove comment or put error there
Member
Author
There was a problem hiding this comment.
actually it is used...
spaced4ndy
reviewed
Sep 11, 2025
spaced4ndy
reviewed
Sep 11, 2025
spaced4ndy
reviewed
Sep 11, 2025
epoberezkin
added a commit
that referenced
this pull request
Sep 16, 2025
* smp server: store messages in PostgreSQL * stored procedures to write and to expire messages * function to export messages * move all message functions to PostgreSQL, remove delete trigger * comments * import messages to db * fix message import, add export * fix export * fix export * fix compilation flags * import messages line by line * fix server start with database storage * fix compilation * comments
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.