- Notifications
You must be signed in to change notification settings - Fork5
Commitca5646f
committed
Fix UNLISTEN to fall out quickly if the current backend has never executed
any LISTEN command. This is more important than it used to be becauseDISCARD ALL invokes UNLISTEN. Connection-pooled applications making heavyuse of DISCARD ALL were seeing significant contention for pg_listener,as reported by Matteo Beccati. It seems unlikely that clients using LISTENwould use pooled connections, so this simple tweak seems sufficient,especially since the pg_listener implementation is slated to go away soonanyway.Back-patch to 8.3, where DISCARD ALL was introduced.1 parent30735ad commitca5646f
1 file changed
+9
-1
lines changedLines changed: 9 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
277 | 277 |
| |
278 | 278 |
| |
279 | 279 |
| |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
280 | 284 |
| |
281 | 285 |
| |
282 | 286 |
| |
| |||
291 | 295 |
| |
292 | 296 |
| |
293 | 297 |
| |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
294 | 302 |
| |
295 | 303 |
| |
296 | 304 |
| |
|
0 commit comments
Comments
(0)