summaryrefslogtreecommitdiff
path: root/src/backend/catalog/index.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/catalog/index.c')
-rw-r--r--src/backend/catalog/index.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/backend/catalog/index.c b/src/backend/catalog/index.c
index 5b8e005c5f6..c7376189968 100644
--- a/src/backend/catalog/index.c
+++ b/src/backend/catalog/index.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.119 2000/06/18 22:43:55 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.120 2000/06/28 03:31:23 tgl Exp $
*
*
* INTERFACE ROUTINES
@@ -442,10 +442,10 @@ ConstructIndexReldesc(Relation indexRelation, Oid amoid)
* context changes
* ----------------
*/
- if (!CacheCxt)
- CacheCxt = CreateGlobalMemory("Cache");
+ if (!CacheMemoryContext)
+ CreateCacheMemoryContext();
- oldcxt = MemoryContextSwitchTo((MemoryContext) CacheCxt);
+ oldcxt = MemoryContextSwitchTo(CacheMemoryContext);
indexRelation->rd_am = AccessMethodObjectIdGetForm(amoid);
@@ -904,16 +904,16 @@ InitIndexStrategy(int numatts,
* it will be lost at the end of the transaction.
* ----------------
*/
- if (!CacheCxt)
- CacheCxt = CreateGlobalMemory("Cache");
+ if (!CacheMemoryContext)
+ CreateCacheMemoryContext();
- strategy = (IndexStrategy)
- MemoryContextAlloc((MemoryContext) CacheCxt, strsize);
+ strategy = (IndexStrategy) MemoryContextAlloc(CacheMemoryContext,
+ strsize);
if (amsupport > 0)
{
strsize = numatts * (amsupport * sizeof(RegProcedure));
- support = (RegProcedure *) MemoryContextAlloc((MemoryContext) CacheCxt,
+ support = (RegProcedure *) MemoryContextAlloc(CacheMemoryContext,
strsize);
}
else