• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / storage / 44766295878
88%

Build:
DEFAULT BRANCH: master
Ran 20 Nov 2026 03:46PM UTC
Jobs 2
Files 393
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Nov 2026 03:44PM UTC coverage: 88.38% (+0.04%) from 88.342%
44766295878

push

github

web-flow
fix: recover pg pubsub subscriptions after connection loss (#1730)

## What kind of change does this PR introduce?

Bug fix

## What is the current behavior?

`pg-listen` owns reconnection and restores its channels after a
successful reconnect.
If its retry period expires or restoring a `LISTEN` fails, it reports an
error and can remain without a working subscription. Any reported error
such as including a malformed notification marked pubsub disconnected.

## What is the new behavior?

- Connection loss: keep retrying until it reconnects or shuts down
- After reconnection: create a new subscriber, restore the currently
registered channels and mark pubsub connected again
- Malformed notifications: produce an error but no longer mark pubsub
disconnected or trigger recovery
- Connection timeout: for recovery, use `DATABASE_CONNECTION_TIMEOUT`
which defaults to three seconds
- Query timeout: add 10s timeout for paranoid check for hangs
- Shutdown: cancel recovery backoff and prevent further retries

## Additional context

Notifications sent while disconnected are still missed as before.

---------

Signed-off-by: Ferhat Elmas <elmas.ferhat@gmail.com>

9858 of 11729 branches covered (84.05%)

Branch coverage included in aggregate %.

80 of 82 new or added lines in 2 files covered. (97.56%)

17044 of 18710 relevant lines covered (91.1%)

1255.69 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
90.91
21.14% src/internal/pubsub/postgres.ts
Jobs
ID Job ID Ran Files Coverage
1 rest-pg18 - 44766295878.1 20 Nov 2026 03:51PM UTC 368
68.95
GitHub Action Run
2 unit - 44766295878.2 20 Nov 2026 03:46PM UTC 384
71.54
GitHub Action Run
Source Files on build 44766295878
  • Tree
  • List 393
  • Changed 4
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #44766295878
  • 48b7c145 on github
  • Prev Build on master (#44601683945)
  • Next Build on master (#44771641817)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc