Re: PostgreSQL Advocacy, Thoughts and Comments

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Chris Travers <chris(at)travelamericas(dot)com>
Cc: cnliou(at)so-net(dot)net(dot)tw, pgsql-general(at)postgresql(dot)org
Subject: Re: PostgreSQL Advocacy, Thoughts and Comments
Date: 2003-11-30 14:12:29
Message-ID: 20031130141229.GB28746@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hehe, it's kinda funny when people say things like that.

It depends on what you call a "join". From a certain point of view, an IN
expression is a join too, making subselects a slightly unusual join.

In some ways I think a subselect is the SQL way way of expressing a type of
join that cannot be expressed in the normal way and that with a different
query language, the concept may go away entirely.

I do know that in recent versions of postgres, certain types of subselects
are actually optimised into specific types of joins. It's all just
relational algebra people!

So the moral is, MySQL needs a better query optimiser?

Hope this helps,

On Sun, Nov 30, 2003 at 07:59:09PM +0700, Chris Travers wrote:
> Hi;
>
> The MySQL manual states that Joins perform better than subselects. The
> stated reason is that the planner can better optimize a join.
>
> I am, however, very skeptical of this, and would generally assume things to
> be the other way around.
>
> How do subselects perform in relation to hash joins, etc?
>
> Best Wishes,
> Chris Travers
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings

--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> "All that is needed for the forces of evil to triumph is for enough good
> men to do nothing." - Edmond Burke
> "The penalty good people pay for not being interested in politics is to be
> governed by people worse than themselves." - Plato

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martin Marques 2003-11-30 14:43:04 Re: Triggers, Stored Procedures, PHP. was: Re: PostgreSQL Advocacy, Thoughts and Comments
Previous Message Kamil Kukura 2003-11-30 13:57:40 Re: passing function's output into C function