mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-30 19:00:29 +08:00
Increase MAX_SYSCACHE_CALLBACKS from 20 to 32.
By my count there are 18 callers of CacheRegisterSyscacheCallback in the core code in HEAD, so we are potentially leaving as few as 2 slots for any add-on code to use (though possibly not all these callers would actually activate in any particular session). That doesn't seem like a lot of headroom, so let's pump it up a little.
This commit is contained in:
parent
45ba424f33
commit
0ce4459a36
2
src/backend/utils/cache/inval.c
vendored
2
src/backend/utils/cache/inval.c
vendored
@ -174,7 +174,7 @@ static int maxSharedInvalidMessagesArray;
|
||||
* assumes there won't be very many of these at once; could improve if needed.
|
||||
*/
|
||||
|
||||
#define MAX_SYSCACHE_CALLBACKS 20
|
||||
#define MAX_SYSCACHE_CALLBACKS 32
|
||||
#define MAX_RELCACHE_CALLBACKS 5
|
||||
|
||||
static struct SYSCACHECALLBACK
|
||||
|
Loading…
Reference in New Issue
Block a user