summaryrefslogtreecommitdiff
path: root/src/include/access/hash.h
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2002-02-25 04:06:52 +0000
committerBruce Momjian <bruce@momjian.us>2002-02-25 04:06:52 +0000
commitf5dff44736911b10c83d2717ca53ad90dd967758 (patch)
tree6e4068345b5599efd5cab5b82cd66f531f676da0 /src/include/access/hash.h
parent7464e7f25ae56da1c4231c637b243a957431979b (diff)
downloadpostgresql-f5dff44736911b10c83d2717ca53ad90dd967758.tar.gz
I've attached a simple patch which should improve the performance of
hashname() and reduce the penalty incured when NAMEDATALEN is increased. I posted this to -hackers a couple days ago, and there haven't been any major complaints. It passes the regression tests. See -hackers for more discussion, as well as the suggestion from Tom Lane on which this patch is based. Unless anyone sees any problems, please apply for 7.3. Cheers, Neil Conway
Diffstat (limited to 'src/include/access/hash.h')
-rw-r--r--src/include/access/hash.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/access/hash.h b/src/include/access/hash.h
index 835d778d90..c88f34f54a 100644
--- a/src/include/access/hash.h
+++ b/src/include/access/hash.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: hash.h,v 1.42 2001/11/05 17:46:31 momjian Exp $
+ * $Id: hash.h,v 1.43 2002/02/25 04:06:52 momjian Exp $
*
* NOTES
* modeled after Margo Seltzer's hash implementation for unix.
@@ -265,7 +265,7 @@ extern Datum hashoidvector(PG_FUNCTION_ARGS);
extern Datum hashint2vector(PG_FUNCTION_ARGS);
extern Datum hashname(PG_FUNCTION_ARGS);
extern Datum hashvarlena(PG_FUNCTION_ARGS);
-extern Datum hash_any(char *keydata, int keylen);
+extern Datum hash_any(const char *keydata, int keylen);
/* private routines */