Understanding INNER JOIN versus IN subquery - Mailing list pgsql-general

From Robert James
Subject Understanding INNER JOIN versus IN subquery
Date
Msg-id e09785e00907200637o1d62c3cfm8776861352f9ee23@mail.gmail.com
Whole thread Raw
Responses Re: Understanding INNER JOIN versus IN subquery
Re: Understanding INNER JOIN versus IN subquery
List pgsql-general
I have two queries which should be equivalent.  The Planner plans them differently, although they are both about the same time.  Can someone explain why?
select word from dict
where 
 word in 
 (select substr('moon', 0, generate_series(3,length('moon'))))

select * from dict
inner join (select substr('moon', 0, generate_series(3,length('moon')))) as m
on dict.word = m.substr 

Is one preferred?

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: timestamp with time zone tutorial
Next
From: Ivan Sergio Borgonovo
Date:
Subject: Re: Documentation Improvement suggestions