- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit588acf6

Amit Kapila
Avoid invalidating all RelationSyncCache entries on publication change.
On change of publication via ALTER PUBLICATION ... SET/ADD/DROP commands,we were invalidating all the relations present in relation sync cachemaintained by pgoutput. We need to invalidate only the relation entriesthat are changed as part of publication DDL.We have ensured that the publication DDL execution generated theinvalidations required to invalidate impacted relation sync entries inRelationSyncCache.This improves the performance by avoiding building the cache entries forthe cases where a publication has many tables but only one of them isdropped.Author: Shlok Kyal <shlok.kyal.oss@gmail.com>Author: Hayato Kuroda <kuroda.hayato@fujitsu.com>Reviewed-by: Hou Zhijie <houzj.fnst@fujitsu.com>Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>Discussion:https://postgr.es/m/OSCPR01MB14966C09AA201EFFA706576A7F5C92@OSCPR01MB14966.jpnprd01.prod.outlook.com1 parent1d33de9 commit588acf6
1 file changed
+8
-14
lines changedLines changed: 8 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1965 | 1965 |
| |
1966 | 1966 |
| |
1967 | 1967 |
| |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
1968 | 1975 |
| |
1969 | 1976 |
| |
1970 | 1977 |
| |
1971 | 1978 |
| |
1972 | 1979 |
| |
1973 |
| - | |
1974 |
| - | |
1975 |
| - | |
1976 |
| - | |
1977 |
| - | |
1978 |
| - | |
1979 |
| - | |
1980 |
| - | |
1981 |
| - | |
1982 |
| - | |
1983 |
| - | |
1984 |
| - | |
1985 | 1980 |
| |
1986 | 1981 |
| |
1987 | 1982 |
| |
| |||
2397 | 2392 |
| |
2398 | 2393 |
| |
2399 | 2394 |
| |
2400 |
| - | |
2401 |
| - | |
| 2395 | + | |
2402 | 2396 |
| |
2403 | 2397 |
| |
2404 | 2398 |
| |
|
0 commit comments
Comments
(0)