forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit38cf137
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 parent9a41bd8 commit38cf137
1 file changed
+22
-4
lines changedLines changed: 22 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
409 | 409 |
| |
410 | 410 |
| |
411 | 411 |
| |
| 412 | + | |
412 | 413 |
| |
413 | 414 |
| |
414 | 415 |
| |
| |||
504 | 505 |
| |
505 | 506 |
| |
506 | 507 |
| |
507 |
| - | |
508 |
| - | |
509 |
| - | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
510 | 520 |
| |
511 | 521 |
| |
512 | 522 |
| |
| |||
1745 | 1755 |
| |
1746 | 1756 |
| |
1747 | 1757 |
| |
1748 |
| - | |
| 1758 | + | |
1749 | 1759 |
| |
1750 | 1760 |
| |
1751 | 1761 |
| |
| |||
1931 | 1941 |
| |
1932 | 1942 |
| |
1933 | 1943 |
| |
| 1944 | + | |
1934 | 1945 |
| |
| 1946 | + | |
1935 | 1947 |
| |
1936 | 1948 |
| |
1937 | 1949 |
| |
| |||
1946 | 1958 |
| |
1947 | 1959 |
| |
1948 | 1960 |
| |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
| 1964 | + | |
1949 | 1965 |
| |
1950 | 1966 |
| |
1951 | 1967 |
| |
| |||
1968 | 1984 |
| |
1969 | 1985 |
| |
1970 | 1986 |
| |
| 1987 | + | |
| 1988 | + | |
1971 | 1989 |
| |
1972 | 1990 |
| |
1973 | 1991 |
| |
|
0 commit comments
Comments
(0)