pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Randall Lucas <rlucas@tercent.net>
Cc: Rod Taylor <rbt@rbt.ca>
Cc: pgsql-sql@postgresql.org
Subject: Re: merge-join for domain with underlying type text
Date: Sat, 10 May 2003 23:19:49 -0400
Message-ID: <10881.1052623189@sss.pgh.pa.us> (raw)
In-Reply-To: <F6870A5A-834A-11D7-B164-000A957653D6@tercent.net>
References: <F6870A5A-834A-11D7-B164-000A957653D6@tercent.net>

Randall Lucas <rlucas@tercent.net> writes:
> Hackers, why is this?  It seems to me that since everything else (or 
> everything I've run into so far, up to the full outer joins) is 
> implicitly the same for a simple domain and its underlying base type, 
> that it would make sense if this, too, Just Worked.

It does Just Work ... in CVS tip.  I can't make it magically work in
7.3 --- at least not without back-patching a lot of stuff that hasn't
been through beta-testing yet.

The problem is that mergejoin in existing releases will only work on
plain "Var = Var" clauses.  Your domain case doesn't look like that
because of the runtime cast operators.

			regards, tom lane




view thread (6+ messages)

Message-ID: <10881.1052623189@sss.pgh.pa.us>
Permalink:  ../10881.1052623189@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10881.1052623189@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, rlucas@tercent.net, rbt@rbt.ca
  Subject: Re: merge-join for domain with underlying type text
  In-Reply-To: <10881.1052623189@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox