Increase MAX_SYSCACHE_CALLBACKS from 20 to 32.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 20 Jun 2012 23:47:37 +0000 (19:47 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 20 Jun 2012 23:47:37 +0000 (19:47 -0400)
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.

src/backend/utils/cache/inval.c

index 9ccfc4f1144ac90365984476a728a164d7807bb1..34802eeb08726cf0fec406ca96561fcfdbbc7baa 100644 (file)
@@ -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