aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-01-29 23:22:59 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-01-29 23:22:59 +0000
commite8cd6f14a26bbecd3d8abcf36235a033cb035678 (patch)
tree1d525004f3c6720b5ea224882a4fc4f3d3af2623 /src
parentc120dd263b18adaee01515c9542f583c0ea44074 (diff)
downloadpostgresql-e8cd6f14a26bbecd3d8abcf36235a033cb035678.tar.gz
postgresql-e8cd6f14a26bbecd3d8abcf36235a033cb035678.zip
Add comment noting that hashm_procid in a hash index's metapage isn't
actually used for anything.
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/hash/hashpage.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/backend/access/hash/hashpage.c b/src/backend/access/hash/hashpage.c
index e1cf17b282d..97eb3c379ee 100644
--- a/src/backend/access/hash/hashpage.c
+++ b/src/backend/access/hash/hashpage.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/access/hash/hashpage.c,v 1.63 2007/01/05 22:19:22 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/access/hash/hashpage.c,v 1.64 2007/01/29 23:22:59 tgl Exp $
*
* NOTES
* Postgres hash pages look like ordinary relation pages. The opaque
@@ -275,6 +275,11 @@ _hash_metapinit(Relation rel)
metap->hashm_bmshift = i + BYTE_TO_BIT;
Assert((1 << BMPG_SHIFT(metap)) == (BMPG_MASK(metap) + 1));
+ /*
+ * Label the index with its primary hash support function's OID. This is
+ * pretty useless for normal operation (in fact, hashm_procid is not used
+ * anywhere), but it might be handy for forensic purposes so we keep it.
+ */
metap->hashm_procid = index_getprocid(rel, 1, HASHPROC);
/*