Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitea43da5

Browse files
committed
Use hash table name, not one-size-fits-all 'DynaHashTable', to identify
memory contexts belonging to hash tables. Makes the memory stats printouta little more useful.
1 parent5c5b911 commitea43da5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/backend/utils/hash/dynahash.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $PostgreSQL: pgsql/src/backend/utils/hash/dynahash.c,v 1.49 2003/11/2919:52:01 pgsql Exp $
12+
* $PostgreSQL: pgsql/src/backend/utils/hash/dynahash.c,v 1.50 2003/12/2923:54:22 tgl Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -148,7 +148,7 @@ hash_create(const char *tabname, long nelem, HASHCTL *info, int flags)
148148
{
149149
/*
150150
* ctl structure is preallocated for shared memory tables. Note
151-
* that HASH_DIRSIZE had better be set as well.
151+
* that HASH_DIRSIZEand HASH_ALLOChad better be set as well.
152152
*/
153153
hashp->hctl=info->hctl;
154154
hashp->dir=info->dir;
@@ -220,7 +220,7 @@ hash_create(const char *tabname, long nelem, HASHCTL *info, int flags)
220220
{
221221
/* remaining hash table structures live in child of given context */
222222
hashp->hcxt=AllocSetContextCreate(CurrentDynaHashCxt,
223-
"DynaHashTable",
223+
tabname,
224224
ALLOCSET_DEFAULT_MINSIZE,
225225
ALLOCSET_DEFAULT_INITSIZE,
226226
ALLOCSET_DEFAULT_MAXSIZE);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp