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

Commit596a7c8

Browse files
committed
Increase MAX_SYSCACHE_CALLBACKS to provide more room for extensions.
Increase from the historical value of 32 to 64. We are up to 31 callersof CacheRegisterSyscacheCallback() in HEAD, so if they were all to beexercised in one process that would leave only one slot for add-on modules.It's probably not possible for that to happen, but still we clearly needmore daylight here. (At some point it might be worth making the arraydynamically resizable; but since we've never heard a complaint of "out ofsyscache_callback_list slots" happening in the field, I doubt it's worthit yet.)Back-patch as far as 9.4, which is where we increased the companion limitMAX_RELCACHE_CALLBACKS (cf commitf01d1ae). It's not as urgent inreleased branches, which have only a couple dozen call sites in core, butit still seems that somebody might hit the limit before these branches die.Discussion:https://postgr.es/m/12184.1494450131@sss.pgh.pa.us
1 parentd10c626 commit596a7c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/utils/cache/inval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ static intmaxSharedInvalidMessagesArray;
180180
* assumes there won't be very many of these at once; could improve if needed.
181181
*/
182182

183-
#defineMAX_SYSCACHE_CALLBACKS32
183+
#defineMAX_SYSCACHE_CALLBACKS64
184184
#defineMAX_RELCACHE_CALLBACKS 10
185185

186186
staticstructSYSCACHECALLBACK

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp