- Notifications
You must be signed in to change notification settings - Fork28
Commitc6f570f
committed
Associate WaitEventSet with postgres_fdw connection.
Instead of epoll_create/close every single time we wait for foreign server inpgfdw_get_result, reuse WaitEventSet during the lifetime of the connection,removing this bottleneck.We have to pass around ConnCacheEntry around instead of plain pq connection forthat, so changes are not that small. On the other hand, probably we can reusethis state for session-level prepared statements support.Another solution would be internal caching of epoll instances in latch.c,however that's much more invasive and it is not entirely clear when toinvalidate such cache.We also should probably check other uses WaitLatch/WaitLatchOrSocket for suchbottlenecks.1 parent849314b commitc6f570f
File tree
3 files changed
+194
-137
lines changed- contrib/postgres_fdw
3 files changed
+194
-137
lines changed0 commit comments
Comments
(0)