summaryrefslogtreecommitdiff
path: root/src/timezone
diff options
context:
space:
mode:
authorTom Lane2005-06-26 23:32:34 +0000
committerTom Lane2005-06-26 23:32:34 +0000
commit06ae88a82e7fea5a1c3f8083581f1dd9d75fafc4 (patch)
tree9fdb6c8e627fc2f00a21b0cb90c57795c5eaae77 /src/timezone
parent943b396245bd699a66c894c5e11303b3ef93ac7b (diff)
Tweak dynahash.c to not allocate so many entries at once when dealing
with a table that has a small predicted size. Avoids wasting several hundred K on the timezone hash table, which is likely to have only one or a few entries, but the entries use up 10Kb apiece ...
Diffstat (limited to 'src/timezone')
-rw-r--r--src/timezone/pgtz.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timezone/pgtz.c b/src/timezone/pgtz.c
index 20f4b898c01..305bea2e5eb 100644
--- a/src/timezone/pgtz.c
+++ b/src/timezone/pgtz.c
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.35 2005/06/20 08:00:51 neilc Exp $
+ * $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.36 2005/06/26 23:32:34 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -978,7 +978,7 @@ init_timezone_hashtable(void)
hash_ctl.entrysize = sizeof(pg_tz);
timezone_cache = hash_create("Timezones",
- 31,
+ 4,
&hash_ctl,
HASH_ELEM);
if (!timezone_cache)