Commit 9210269
fix(backend): Skip cdb_setup/cdb_cleanup for auxiliary background workers
Fix issue apache#1389: Auxiliary processes (ftsprobe, global deadlock detector,
dtx recovery, sweeper, pg_cron launcher) currently open unnecessary
network sockets for interconnect communication they don't need.
Per review feedback, instead of adding checks inside cdb_setup/cdb_cleanup
functions, skip calling these functions entirely for auxiliary background
workers in InitPostgres().
This resolves the security concern of having unnecessary open network
ports and reduces resource usage.1 parent 0d23be8 commit 9210269
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1267 | 1267 | | |
1268 | 1268 | | |
1269 | 1269 | | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
1270 | 1275 | | |
1271 | | - | |
| 1276 | + | |
| 1277 | + | |
1272 | 1278 | | |
1273 | 1279 | | |
1274 | 1280 | | |
| |||
0 commit comments