88 *
99 *
1010 * IDENTIFICATION
11- * $PostgreSQL: pgsql/src/backend/storage/ipc/sinvaladt.c,v 1.68 2008/03/17 11:50:27 alvherre Exp $
11+ * $PostgreSQL: pgsql/src/backend/storage/ipc/sinvaladt.c,v 1.69 2008/03/18 12:36:43 alvherre Exp $
1212 *
1313 *-------------------------------------------------------------------------
1414 */
@@ -330,12 +330,8 @@ SIInsertDataEntry(SharedInvalidationMessage *data)
330330 * queries, but if a backend is sitting idle then it won't be starting
331331 * transactions and so won't be reading SI entries.
332332 */
333- if (numMsgs == (MAXNUMMESSAGES * 70 /100 )&&
334- IsUnderPostmaster )
335- {
336- elog (DEBUG4 ,"SI table is 70%% full, signaling postmaster" );
333+ if (numMsgs == (MAXNUMMESSAGES * 70 /100 )&& IsUnderPostmaster )
337334signal_postmaster = true;
338- }
339335
340336/*
341337 * Insert new message into proper slot of circular buffer
@@ -346,7 +342,10 @@ SIInsertDataEntry(SharedInvalidationMessage *data)
346342LWLockRelease (SInvalLock );
347343
348344if (signal_postmaster )
345+ {
346+ elog (DEBUG4 ,"SI table is 70%% full, signaling postmaster" );
349347SendPostmasterSignal (PMSIGNAL_WAKEN_CHILDREN );
348+ }
350349
351350return true;
352351}