diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2012-06-20 19:47:37 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2012-06-20 19:47:37 -0400 |
commit | 0ce4459a366def5173a59a74ba1b81e8449b8df1 (patch) | |
tree | 71c8d55a05715aff691a50efa9467aa5cd98b732 /src | |
parent | 45ba424f332a7eaa685a4e23f142a43114c65811 (diff) | |
download | postgresql-0ce4459a366def5173a59a74ba1b81e8449b8df1.tar.gz postgresql-0ce4459a366def5173a59a74ba1b81e8449b8df1.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/utils/cache/inval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/cache/inval.c b/src/backend/utils/cache/inval.c index 9ccfc4f1144..34802eeb087 100644 --- a/src/backend/utils/cache/inval.c +++ b/src/backend/utils/cache/inval.c @@ -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 |