Re: UPDATE with JOIN not using index - Mailing list pgsql-general

From Arnaud Lesauvage
Subject Re: UPDATE with JOIN not using index
Date
Msg-id 4B9FABE2.7000509@codata.eu
Whole thread Raw
In response to Re: UPDATE with JOIN not using index  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Le 16/03/2010 16:52, Tom Lane a écrit :
> Sometime in the future they might generate the same plan.  Right now the
> planner's ability to optimize sub-SELECTs is pretty limited, and so you
> typically get a nestloop-like plan even if some other join style would
> be faster.

OK, thanks for the clarification.
Should joins always be considered better than subselects then ?

I like the readability of subselects and I think I use them more often
than joins when I have the choice, so maybe I should check and change
all my queries ?

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: UPDATE with JOIN not using index
Next
From: Peter Schmidtke
Date:
Subject: Re: reuse data in existing data directory