Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4e7ecc7

Browse files
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 parent7179ae0 commit4e7ecc7

File tree

3 files changed

+213
-145
lines changed

3 files changed

+213
-145
lines changed

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp