merge-join for domain with underlying type text

From: Randall Lucas <rlucas(at)tercent(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: merge-join for domain with underlying type text
Date: 2003-05-10 21:04:58
Message-ID: 0ED09669-832B-11D7-B164-000A957653D6@tercent.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Rod Taylor 2003-05-10 22:13:25 Re: merge-join for domain with underlying type text
Previous Message Randall Lucas 2003-05-10 17:36:47 Re: Using psql to insert character codes