- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit6ce1608
committed
Reduce relcache access in WAL sender streaming logical changes
get_rel_sync_entry(), which is called each time a change needs to belogically replicated, is a rather hot code path in the WAL sendersending logical changes. This code path was doing a relcache access onrelkind and relpartition for each logical change, but we only need toknow this information when building or re-building the cachedinformation for a relation.Some measurements prove that this is noticeable in perf profiles,particularly when attempting to replicate changes from relations thatare not published as these cause less overhead in the WAL sender,delaying further the replication of changes for relations that arepublished.Issue introduced in83fd453.Author: Hou ZhijieReviewed-by: Kyotaro Horiguchi, Euler TaveiraDiscussion:https://postgr.es/m/OS0PR01MB5716E863AA9E591C1F010F7A947D9@OS0PR01MB5716.jpnprd01.prod.outlook.comBackpatch-through: 131 parent913a03e commit6ce1608
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1119 | 1119 |
| |
1120 | 1120 |
| |
1121 | 1121 |
| |
1122 |
| - | |
1123 |
| - | |
1124 | 1122 |
| |
1125 | 1123 |
| |
1126 | 1124 |
| |
| |||
1160 | 1158 |
| |
1161 | 1159 |
| |
1162 | 1160 |
| |
| 1161 | + | |
| 1162 | + | |
1163 | 1163 |
| |
1164 | 1164 |
| |
1165 | 1165 |
| |
|
0 commit comments
Comments
(0)