From f5dff44736911b10c83d2717ca53ad90dd967758 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 25 Feb 2002 04:06:52 +0000 Subject: 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 --- src/include/access/hash.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include/access/hash.h') 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 */ -- cgit v1.2.1