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

From: Harco de Hilster <Harco(dot)de(dot)Hilster(at)ATConsultancy(dot)nl>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: ERROR: FULL JOIN is only supported with merge-joinable
Date: 2006-03-13 16:39:50
Message-ID: 4415A056.2020203@ATConsultancy.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks for your thoughts.

What is the definition of a merge-joinable condition?

Even if I put ExpTime = Infinity (I saw that one coming ;-)), the same
error is reported. My only option here is to add A.exptime = B.exptime
(which is only true for live data if I use INFINITY), and lose the
ability to query historical data.

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

Kind regards,

Harco

Tom Lane wrote:

>Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:
>
>
>>I think the reason it hasn't been done for general join conditions is
>>because we havn't thought of an efficient algorithm.
>>
>>
>
>Right, it's keeping track of the unmatched right-hand rows that's a
>problem.
>
>
>
>>However, I wonder if youre case couldn't be handled with a
>>time-interval datatype such that you condition is merge-joinable on
>>that type. I can't quite see it though...
>>
>>
>
>Interesting thought. The use of NULLs in this example is a pretty poor
>representational choice --- the queries would get a lot simpler if you
>used "exptime = INFINITY" to represent unexpired data. That doesn't get
>you all the way to a mergejoinable query though :-(
>
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter 2006-03-13 16:43:24 Transaction eating up all RAM
Previous Message Emi Lu 2006-03-13 16:25:10 Re: in Pl/PgSQL, do commit every 5000 records