diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-12-29 23:54:22 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-12-29 23:54:22 +0000 |
commit | ea43da51386226a3a80572b4608d5fc572c0891f (patch) | |
tree | 25991611ea3b38a88a52e31df20f4c4a802eeca1 | |
parent | 5c5b911fcc9dd2c3f3397800a8a625ef644962e1 (diff) |
Use hash table name, not one-size-fits-all 'DynaHashTable', to identify
memory contexts belonging to hash tables. Makes the memory stats printout
a little more useful.
-rw-r--r-- | src/backend/utils/hash/dynahash.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/utils/hash/dynahash.c b/src/backend/utils/hash/dynahash.c index dd0f119e36e..c58359ccb82 100644 --- a/src/backend/utils/hash/dynahash.c +++ b/src/backend/utils/hash/dynahash.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/hash/dynahash.c,v 1.49 2003/11/29 19:52:01 pgsql Exp $ + * $PostgreSQL: pgsql/src/backend/utils/hash/dynahash.c,v 1.50 2003/12/29 23:54:22 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -148,7 +148,7 @@ hash_create(const char *tabname, long nelem, HASHCTL *info, int flags) { /* * ctl structure is preallocated for shared memory tables. Note - * that HASH_DIRSIZE had better be set as well. + * that HASH_DIRSIZE and HASH_ALLOC had better be set as well. */ hashp->hctl = info->hctl; hashp->dir = info->dir; @@ -220,7 +220,7 @@ hash_create(const char *tabname, long nelem, HASHCTL *info, int flags) { /* remaining hash table structures live in child of given context */ hashp->hcxt = AllocSetContextCreate(CurrentDynaHashCxt, - "DynaHashTable", + tabname, ALLOCSET_DEFAULT_MINSIZE, ALLOCSET_DEFAULT_INITSIZE, ALLOCSET_DEFAULT_MAXSIZE); |