Skip to content

Conversation

@epoberezkin
Copy link
Member

No description provided.

@epoberezkin epoberezkin force-pushed the ep/message-store branch 2 times, most recently from 66b6a89 to bfb0176 Compare September 5, 2025 13:00
unsafeRunStore :: StoreQueue s -> Text -> StoreMonad s a -> IO a

data MSType = MSMemory | MSJournal
-- default implementations are overridden for PostgreSQL storage of messages
Copy link
Member Author

Choose a reason for hiding this comment

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

moved into typeclass to redefine in PostgreSQL store

{-# INLINE recipientId #-}
queueRec = queueRec'
{-# INLINE queueRec #-}
withQueueLock PostgresQueue {} _ = id -- TODO [messages] maybe it's just transaction?
Copy link
Collaborator

@spaced4ndy spaced4ndy Sep 11, 2025

Choose a reason for hiding this comment

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

I think it may depend on configured transaction isolation

Copy link
Member Author

Choose a reason for hiding this comment

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

not used, will just remove comment or put error there

Copy link
Member Author

Choose a reason for hiding this comment

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

actually it is used...

@epoberezkin epoberezkin changed the base branch from master to db-messages September 11, 2025 15:10
@epoberezkin epoberezkin merged commit bac6ea6 into db-messages Sep 11, 2025
1 of 6 checks passed
@epoberezkin epoberezkin deleted the ep/message-store branch September 11, 2025 19:22
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
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