Repository navigation
fix: keep client connected when LISTEN/NOTIFY run with pub/sub disabled - #1884
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Contributor
|
| Project | PgDog |
| Branch | fix/pub-sub-disabled |
| Testbed | Intel v1 |
🐰 View full continuous benchmarking report in Bencher
⚠️ WARNING: Truncated view!The full continuous benchmarking report exceeds the maximum length allowed on this platform.
Contributor
|
| Project | PgDog |
| Branch | fix/pub-sub-disabled |
| Testbed | Intel v1 |
Click to view all benchmark results
| Benchmark | Throughput | Benchmark Result operations / second (ops/s) x 1e3 (Result Δ%) | Lower Boundary operations / second (ops/s) x 1e3 (Limit %) | cpu-per-txn | Benchmark Result Measure (units) (Result Δ%) | Upper Boundary Measure (units) (Limit %) |
|---|---|---|---|---|---|---|
| pooler-v3 | 📈 view plot 🚷 view threshold | 16.99 ops/s x 1e3(+0.00%)Baseline: 16.99 ops/s x 1e3 | 16.82 ops/s x 1e3 (99.00%) | 📈 view plot 🚷 view threshold | 40.43 units(-4.25%)Baseline: 42.23 units | 42.86 units (94.33%) |
Contributor
|
| Project | PgDog |
| Branch | fix/pub-sub-disabled |
| Testbed | Intel v1 |
Click to view all benchmark results
| Benchmark | Throughput | Benchmark Result operations / second (ops/s) x 1e3 (Result Δ%) | Lower Boundary operations / second (ops/s) x 1e3 (Limit %) | cpu-per-txn | Benchmark Result Measure (units) (Result Δ%) | Upper Boundary Measure (units) (Limit %) |
|---|---|---|---|---|---|---|
| lb-v3 | 📈 view plot 🚷 view threshold | 15.99 ops/s x 1e3(+0.00%)Baseline: 15.99 ops/s x 1e3 | 15.83 ops/s x 1e3 (99.00%) | 📈 view plot 🚷 view threshold | 41.43 units(-4.60%)Baseline: 43.43 units | 44.08 units (93.99%) |
jkaczman
force-pushed
the
fix/pub-sub-disabled
branch
from
October 22, 2026 23:24
08e8d35 to
2328831
Compare
Contributor
|
Metal bench passed. All 150 measures within bounds.
Counters per txn
Microbench: all 135 measures within bounds.
Logslb, microbench, pooler, sharding-w2, sharding-w8, verdict.json |
jkaczman
self-requested a review
October 27, 2026 18:29
jkaczman
reviewed
Oct 27, 2026
jkaczman
approved these changes
Oct 28, 2026
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.
Summary
LISTENandNOTIFYwith pub/sub disabled (pub_sub_channel_size = 0, the default) returnedFATAL: pub/sub disabledand closed the client connection. Fixes #1808.The error is now reported with SQLSTATE
0A000, the connection stays open, and an open transaction is marked failed. The hint tells the client to setpub_sub_channel_size.NOTIFYinside a transaction is rejected immediately. Those notifications are buffered and sent afterCOMMIT, so failing then would close the connection after the client was told the commit succeeded.