|
7 | 7 | * Portions Copyright (c) 1994, Regents of the University of California
|
8 | 8 | *
|
9 | 9 | * IDENTIFICATION
|
10 |
| - * $PostgreSQL: pgsql/src/backend/commands/async.c,v 1.151 2010/02/16 22:34:43 tgl Exp $ |
| 10 | + * $PostgreSQL: pgsql/src/backend/commands/async.c,v 1.152 2010/02/17 00:52:09 tgl Exp $ |
11 | 11 | *
|
12 | 12 | *-------------------------------------------------------------------------
|
13 | 13 | */
|
|
137 | 137 | /*
|
138 | 138 | * Maximum size of a NOTIFY payload, including terminating NULL. This
|
139 | 139 | * must be kept small enough so that a notification message fits on one
|
140 |
| - * SLRU page. |
| 140 | + * SLRU page. The magic fudge factor here is noncritical as long as it's |
| 141 | + * more than AsyncQueueEntryEmptySize --- we make it significantly bigger |
| 142 | + * than that, so changes in that data structure won't affect user-visible |
| 143 | + * restrictions. |
141 | 144 | */
|
142 |
| -#defineNOTIFY_PAYLOAD_MAX_LENGTH8000 |
| 145 | +#defineNOTIFY_PAYLOAD_MAX_LENGTH(BLCKSZ - NAMEDATALEN - 128) |
143 | 146 |
|
144 | 147 | /*
|
145 | 148 | * Struct representing an entry in the global notify queue
|
|