diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-04-02 03:49:42 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-04-02 03:49:42 +0000 |
commit | 57690c6803525f879fe96920a05e979ece073e71 (patch) | |
tree | 42e82eaa1e9c8247b39a2ad783bf190b5001acfe /src/backend/access | |
parent | a482a3e58b3e5830899560c555e57e4184b8e6be (diff) | |
download | postgresql-57690c6803525f879fe96920a05e979ece073e71.tar.gz postgresql-57690c6803525f879fe96920a05e979ece073e71.zip |
Support enum data types. Along the way, use macros for the values of
pg_type.typtype whereever practical. Tom Dunstan, with some kibitzing
from Tom Lane.
Diffstat (limited to 'src/backend/access')
-rw-r--r-- | src/backend/access/hash/hashfunc.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/backend/access/hash/hashfunc.c b/src/backend/access/hash/hashfunc.c index 1a1f21ef2aa..d9b5524b0ab 100644 --- a/src/backend/access/hash/hashfunc.c +++ b/src/backend/access/hash/hashfunc.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/access/hash/hashfunc.c,v 1.50 2007/01/05 22:19:22 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/access/hash/hashfunc.c,v 1.51 2007/04/02 03:49:37 tgl Exp $ * * NOTES * These functions are stored in pg_amproc. For each operator class @@ -73,6 +73,12 @@ hashoid(PG_FUNCTION_ARGS) } Datum +hashenum(PG_FUNCTION_ARGS) +{ + PG_RETURN_UINT32(~((uint32) PG_GETARG_OID(0))); +} + +Datum hashfloat4(PG_FUNCTION_ARGS) { float4 key = PG_GETARG_FLOAT4(0); |