forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0f78df7
committed
Don't repeatedly register cache callbacks in pgoutput plugin.
Multiple cycles of starting up and shutting down the plugin within asingle session would eventually lead to "out of relcache_callback_listslots", because pgoutput_startup blindly re-registered its cachecallbacks each time. Fix it to register them only once, as all otherusers of cache callbacks already take care to do.This has been broken all along, so back-patch to all supported branches.Shi YuDiscussion:https://postgr.es/m/OSZPR01MB631004A78D743D68921FFAD3FDA79@OSZPR01MB6310.jpnprd01.prod.outlook.com1 parentf0423be commit0f78df7
1 file changed
+21
-3
lines changedLines changed: 21 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
260 | 260 |
| |
261 | 261 |
| |
262 | 262 |
| |
| 263 | + | |
263 | 264 |
| |
264 | 265 |
| |
265 | 266 |
| |
| |||
323 | 324 |
| |
324 | 325 |
| |
325 | 326 |
| |
326 |
| - | |
327 |
| - | |
328 |
| - | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
329 | 339 |
| |
330 | 340 |
| |
331 | 341 |
| |
| |||
948 | 958 |
| |
949 | 959 |
| |
950 | 960 |
| |
| 961 | + | |
951 | 962 |
| |
| 963 | + | |
952 | 964 |
| |
953 | 965 |
| |
954 | 966 |
| |
| |||
963 | 975 |
| |
964 | 976 |
| |
965 | 977 |
| |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
966 | 982 |
| |
967 | 983 |
| |
968 | 984 |
| |
969 | 985 |
| |
| 986 | + | |
| 987 | + | |
970 | 988 |
| |
971 | 989 |
| |
972 | 990 |
| |
|
0 commit comments
Comments
(0)