Avoid duplicate table scans for cross-partition updates during logical replication.
Amit Kapila <akapila@postgresql.org>
Avoid duplicate table scans for cross-partition updates during logical replication. When performing a cross-partition update in the apply worker, it needlessly scans the old partition twice, resulting in noticeable overhead. This commit optimizes it by removing the redundant table scan. Author: Hou Zhijie Reviewed-by: Hayato Kuroda, Amit Kapila Discussion: https://postgr.es/m/OS0PR01MB571623E39984D94CBB5341D994AB2@OS0PR01MB5716.jpnprd01.prod.outlook.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/replication/logical/worker.c | modified | +10 −10 |
Discussion
- Remove duplicate table scan in logical apply worker and code refactoring 9 messages · 2024-07-25 → 2024-08-01