aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_oper.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-12-27 18:55:52 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-12-27 18:55:52 +0000
commitd4d1885e42ecc7d61c045f6d53b8fef4454083a9 (patch)
tree35574a51f8bdd4b0fc34eac62ef421d5f1779704 /src/backend/parser/parse_oper.c
parentc4371cdb8b7615938c255ba584ea67f8b7d496b5 (diff)
downloadpostgresql-d4d1885e42ecc7d61c045f6d53b8fef4454083a9.tar.gz
postgresql-d4d1885e42ecc7d61c045f6d53b8fef4454083a9.zip
Remove a couple of unnecessary calls of CreateCacheMemoryContext. These
probably got there via blind copy-and-paste from one of the legitimate callers, so rearrange and comment that code a bit to make it clearer that this isn't a necessary prerequisite to hash_create. Per observation from Robert Haas.
Diffstat (limited to 'src/backend/parser/parse_oper.c')
-rw-r--r--src/backend/parser/parse_oper.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/backend/parser/parse_oper.c b/src/backend/parser/parse_oper.c
index 16ed3a11ed5..02d93790c9a 100644
--- a/src/backend/parser/parse_oper.c
+++ b/src/backend/parser/parse_oper.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/parser/parse_oper.c,v 1.109 2009/06/13 15:42:09 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/parser/parse_oper.c,v 1.110 2009/12/27 18:55:52 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1098,9 +1098,6 @@ find_oper_cache_entry(OprCacheKey *key)
/* First time through: initialize the hash table */
HASHCTL ctl;
- if (!CacheMemoryContext)
- CreateCacheMemoryContext();
-
MemSet(&ctl, 0, sizeof(ctl));
ctl.keysize = sizeof(OprCacheKey);
ctl.entrysize = sizeof(OprCacheEntry);