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

Commite8cd6f1

Browse files
committed
Add comment noting that hashm_procid in a hash index's metapage isn't
actually used for anything.
1 parentc120dd2 commite8cd6f1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎src/backend/access/hash/hashpage.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/access/hash/hashpage.c,v 1.63 2007/01/05 22:19:22 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/access/hash/hashpage.c,v 1.64 2007/01/29 23:22:59 tgl Exp $
1212
*
1313
* NOTES
1414
* Postgres hash pages look like ordinary relation pages. The opaque
@@ -275,6 +275,11 @@ _hash_metapinit(Relation rel)
275275
metap->hashm_bmshift=i+BYTE_TO_BIT;
276276
Assert((1 <<BMPG_SHIFT(metap))== (BMPG_MASK(metap)+1));
277277

278+
/*
279+
* Label the index with its primary hash support function's OID. This is
280+
* pretty useless for normal operation (in fact, hashm_procid is not used
281+
* anywhere), but it might be handy for forensic purposes so we keep it.
282+
*/
278283
metap->hashm_procid=index_getprocid(rel,1,HASHPROC);
279284

280285
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp