Tom Lane wrote:
> "Roman Fail" <rfail@posportal.com> writes:
> > Thanks to everyone for the quick replies! I'm sure that my lack of
> > skill with SQL queries is the main problem. What's strange to me is
> > how MSSQL takes my bad queries and makes them look good anyway. It
> > must have a real smart planner.
>
> I think more likely the issue is that your use of JOIN syntax is forcing
> Postgres into a bad plan. MSSQL probably doesn't assign any semantic
> significance to the use of "a JOIN b" syntax as opposed to "FROM a, b"
> syntax. Postgres does. Whether this is a bug or a feature depends on
> your point of view --- but there are folks out there who find it to be
> a life-saver.
Since it *does* depend on one's point of view, would it be possible to
have control over this implemented in a session-defined variable (with
the default in the GUC, of course)? I wouldn't be surprised if a lot
of people get bitten by this.
--
Kevin Brown kevin@sysexperts.com