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 FAA25342 for postgres-redist; Fri, 15 Jul 1994 05:34:42 -0700
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199407151234.FAA25342@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 FAA25331; Fri, 15 Jul 1994 05:34:41 -0700
Message-Id: <199407151234.FAA25331@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: Wojtek Bogusz <Wojtek.Bogusz@fuw.edu.pl>
Cc: Postgres Mailing List <postgres@postgres.Berkeley.EDU>
Subject: Re: New type and pg_operator. 
Reply-To: aoki@CS.Berkeley.EDU (Paul M. Aoki)
In-reply-to: Your message of Fri, 15 Jul 1994 14:00:40 +0200 (MET DST) 
	     <Pine.3.89.9407151351.C21375-0100000@ccfs1> 
Date: Fri, 15 Jul 94 05:34:41 -0700
X-Sender: aoki@postgres.Berkeley.EDU
Resent-To: postgres-redist@postgres.Berkeley.EDU
X-Mts: smtp
Resent-Date: Fri, 15 Jul 94 05:34:42 -0700
Resent-XMts: smtp

the info needed to add new operators and stuff is in chapter 13 of
the user manual.

Wojtek Bogusz <Wojtek.Bogusz@fuw.edu.pl> writes:
> surprising for me that for all operators connected with char/text types
> field oprprec (operator precedence) is equal 0. Why ?

doesn't work anyway.

>  Does exist some (simple :-) explanation what join strategies mean ?

sure, in any database textbook..

the nickle version:

nestloop join - compare everything in A to everything in B

sortmerge join - exploit sorted order to avoid scanning things in 
B known not to match the current element of A (too big, too small,
whatever).

hash join - join only those elements that fall into the same hash 
bucket (same idea - if it doesn't hash into the same bucket, it's 
not bitwise equal, so you don't have to look at it)

> And why hash join strategy is defined (oprcanhash = t) just for "=" ?

unless you use arcane order-preserving hash functions, hash join 
only makes sense for bitwise equality.

> And why
> merge-sort join strategy is not defined for all char/text operators ie. 
> oprrsortop and oprlsort are equal to 0 ?

i have no idea why not.
--
  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.
==============================================================================
