X-Original-To: pgsql-sql@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D5892475CE5 for ; Sat, 10 May 2003 17:04:58 -0400 (EDT) Received: from randalls-laptop.kicks-ass.net (h00062577286a.ne.client2.attbi.com [24.61.43.102]) by postgresql.org (Postfix) with ESMTP id 190E24758F1 for ; Sat, 10 May 2003 17:04:58 -0400 (EDT) Received: from tercent.net (localhost [127.0.0.1]) by randalls-laptop.kicks-ass.net (8.12.9/8.12.6) with ESMTP id h4AL4xfd013862 for ; Sat, 10 May 2003 17:04:59 -0400 (EDT) Date: Sat, 10 May 2003 17:04:58 -0400 Subject: merge-join for domain with underlying type text Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) From: Randall Lucas To: pgsql-sql@postgresql.org Content-Transfer-Encoding: 7bit In-Reply-To: Message-Id: <0ED09669-832B-11D7-B164-000A957653D6@tercent.net> X-Mailer: Apple Mail (2.552) X-Spam-Status: No, hits=-12.1 required=5.0 tests=BAYES_10,IN_REP_TO,USER_AGENT_APPLEMAIL autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200305/196 X-Sequence-Number: 13361 Hi Folks, If I have a domain defined with an underlying type of "text" or "varchar," and I need to FULL OUTER JOIN two tables based upon the similarity in these fields, I am getting: ERROR: FULL JOIN is only supported with mergejoinable join conditions I have looked at the docs and it seems that it's a matter of making the comparison operators for the domain type (as per SQL Reference :: "CREATE OPERATOR" section). However, is there anything tricky about adding the merge-join capability to a domain? Is there a preferred method? Am I barking entirely up the wrong tree (could I, for example, use a casting trick? Simply recasting the fields as type "text" doesn't avoid the error)? Postgres version is 7.3. Best, Randall