Skip to content

WPB-28377: add PostGreSQL support for cannon - #5554

Open
blackheaven wants to merge 3 commits into
developfrom
gdifolco/WPB-28377-cannon-postgresql-2
Open

blackheaven wants to merge 3 commits into
developfrom
gdifolco/WPB-28377-cannon-postgresql-2

Conversation

@blackheaven

Copy link
Copy Markdown
Contributor

https://wearezeta.atlassian.net/browse/WPB-28377

Checklist

  • Add a new entry in an appropriate subdirectory of changelog.d
  • Read and follow the PR guidelines

@blackheaven
blackheaven requested review from a team as code owners September 23, 2026 16:13
@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Sep 23, 2026
@blackheaven
blackheaven force-pushed the gdifolco/WPB-28377-cannon-postgresql-2 branch 3 times, most recently from d6a11f0 to 209b409 Compare September 23, 2026 21:36

@akshaymankar akshaymankar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please add releases notes to notify that redis is deprecated and migration steps needed.

@blackheaven

Copy link
Copy Markdown
Contributor Author

done

@blackheaven
blackheaven force-pushed the gdifolco/WPB-28377-cannon-postgresql-2 branch from dabd1bb to 8987a6a Compare October 20, 2026 17:29
@blackheaven
blackheaven force-pushed the gdifolco/WPB-28377-cannon-postgresql-2 branch 3 times, most recently from 540fe4d to f86a127 Compare November 5, 2026 12:51
@blackheaven
blackheaven force-pushed the gdifolco/WPB-28377-cannon-postgresql-2 branch from f86a127 to 62e2219 Compare November 10, 2026 09:05
…er, pg_cron expire-presence

- presence table gains a NOT NULL expires_at column (created_at + 7 days, mirroring the redis key TTL); created_at stays for the compare-and-delete disconnect logic
- selectByUsers filters AND expires_at >= now(), so expired rows are never served
- new migration 20261110123000-presence-ttl-cleanup.sql schedules the hourly 'expire-presence' pg_cron job (guarded DO block per the mls-proposal-refs template), replacing the per-replica Haskell cleanupPresenceLoop, which is deleted together with Presence.Data.cleanup/deleteStale and their Run.hs wiring
- postgres-schema.sql presence blocks updated (expires_at column, presence_expires_at_idx)
@blackheaven
blackheaven force-pushed the gdifolco/WPB-28377-cannon-postgresql-2 branch from 62e2219 to 907daaa Compare November 13, 2026 11:11

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants