agora inbox for postgres@postgres.berkeley.edu
help / color / mirror / Atom feedFrom: Paul M. Aoki <aoki@CS.Berkeley.EDU>
To: Wolf-D. Ihlenfeldt <wolf@molout.tutkie.tut.ac.jp>
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: How to interface hash access to user types
Date: Fri, 15 Jul 94 19:14:49 -0700
Message-ID: <199407160214.TAA10688@nobozo.CS.Berkeley.EDU> (raw)
In-Reply-To: <9407141119.AA12463@molout.tutkie.tut.ac.jp>
wolf@molout.tutkie.tut.ac.jp (Wolf-D. Ihlenfeldt) writes:
> he Postgres 4.2 documentation explains in detail
> how to interface user data types to btree access methods
> but seems to be completely silent about introducing a
> hash access method for a user data type. Does anybody
> know the necessary steps ?
the hash am has only one strategy, which corresponds to "=" (instead
of the five required by btrees).
the hash am needs one "support" function, which corresponds to your
hash function (like btrees, which also have one support function).
once you know that, it shouldn't be too hard to figure out what to do
from the btree instructions and the existing contents of the catalogs..
--
Paul M. Aoki | University of California at Berkeley
aoki@CS.Berkeley.EDU | Dept. of EECS, Computer Science Division (#1776)
| Berkeley, CA 94720-1776
==============================================================================
To add/remove yourself to/from the POSTGRES mailing list: send mail with
the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"
If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
a human will deal with it. DO NOT post to the "postgres" mailing list.
==============================================================================
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: postgres@postgres.berkeley.edu
Cc: aoki@CS.Berkeley.EDU, wolf@molout.tutkie.tut.ac.jp
Subject: Re: How to interface hash access to user types
In-Reply-To: <199407160214.TAA10688@nobozo.CS.Berkeley.EDU>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox