Skip to content
Discussion options

You must be logged in to vote

This pattern usually means "connection per request" + "sessions never torn down".

A few concrete checks that will tell you where the leak is:

  1. Supavisor mode: if you’re using Session mode, each client can hold a session open. For HTTP/REST-style traffic (Softr polling every ~8–9s), you almost always want Transaction mode, not Session mode, so idle sessions can be returned to the pool between requests.

  2. Confirm what’s actually opening the connections:

  • In Postgres, check active sessions by app/user/addr.
  • Look at state + idle duration. If you see lots of “idle in transaction” or long-lived “idle” sessions, you’ve found the culprit.
  • Check whether they all share the same application_name …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Souej
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants