|
12 | 12 | * Portions Copyright (c) 1994, Regents of the University of California |
13 | 13 | * |
14 | 14 | * IDENTIFICATION |
15 | | - * $PostgreSQL: pgsql/src/backend/utils/mmgr/portalmem.c,v 1.74 2004/10/12 01:50:04 neilc Exp $ |
| 15 | + * $PostgreSQL: pgsql/src/backend/utils/mmgr/portalmem.c,v 1.75 2004/11/21 22:48:01 tgl Exp $ |
16 | 16 | * |
17 | 17 | *------------------------------------------------------------------------- |
18 | 18 | */ |
|
26 | 26 | #include"utils/portal.h" |
27 | 27 |
|
28 | 28 | /* |
29 | | - * estimate of the maximum number of open portals a user would have, |
30 | | - * used in initially sizing the PortalHashTable in EnablePortalManager() |
| 29 | + * Estimate of the maximum number of open portals a user would have, |
| 30 | + * used in initially sizing the PortalHashTable in EnablePortalManager(). |
| 31 | + * Since the hash table can expand, there's no need to make this overly |
| 32 | + * generous, and keeping it small avoids unnecessary overhead in the |
| 33 | + * hash_seq_search() calls executed during transaction end. |
31 | 34 | */ |
32 | | -#definePORTALS_PER_USER64 |
| 35 | +#definePORTALS_PER_USER16 |
33 | 36 |
|
34 | 37 |
|
35 | 38 | /* ---------------- |
|