Return-Path: owner-postman Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id TAA10698 for postgres-redist; Fri, 15 Jul 1994 19:14:50 -0700 Resent-From: POSTGRES mailing list Resent-Message-Id: <199407160214.TAA10698@nobozo.CS.Berkeley.EDU> Sender: owner-postman@postgres.Berkeley.EDU X-Return-Path: owner-postman Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id TAA10688; Fri, 15 Jul 1994 19:14:49 -0700 Message-Id: <199407160214.TAA10688@nobozo.CS.Berkeley.EDU> X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost.Berkeley.EDU didn't use HELO protocol From: aoki@CS.Berkeley.EDU (Paul M. Aoki) To: wolf@molout.tutkie.tut.ac.jp (Wolf-D. Ihlenfeldt) Cc: postgres@postgres.Berkeley.EDU Subject: Re: How to interface hash access to user types Reply-To: aoki@CS.Berkeley.EDU (Paul M. Aoki) In-reply-to: Your message of Thu, 14 Jul 94 20:19:56 jst <9407141119.AA12463@molout.tutkie.tut.ac.jp> Date: Fri, 15 Jul 94 19:14:49 -0700 X-Sender: aoki@postgres.Berkeley.EDU Resent-To: postgres-redist@postgres.Berkeley.EDU X-Mts: smtp Resent-Date: Fri, 15 Jul 94 19:14:50 -0700 Resent-XMts: smtp 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. ==============================================================================