Re: ERROR: FULL JOIN is only supported with merge-joinable

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Harco de Hilster <Harco(dot)de(dot)Hilster(at)ATConsultancy(dot)nl>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: ERROR: FULL JOIN is only supported with merge-joinable
Date: 2006-03-13 18:49:18
Message-ID: 9075.1142275758@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Harco de Hilster <Harco(dot)de(dot)Hilster(at)ATConsultancy(dot)nl> writes:
> What is the definition of a merge-joinable condition?

Equality on a sortable datatype.

> Can I create an type/operator that compares both records that is
> considered merge-joinable?

I think you could do something involving a time interval datatype that
considers "overlap" as equality and does something reasonable for
sorting non-overlapping intervals. It'd take a bit of work ... nothing
particularly difficult, just tedious. The "seg" datatype in contrib/
might serve as a prototype.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message gkoskenmaki 2006-03-13 18:49:38 ExtenDB
Previous Message Tom Lane 2006-03-13 18:44:59 Re: Transaction eating up all RAM