Re: 7.3.1 New install, large queries are slow - Mailing list pgsql-performance

From Kevin Brown
Subject Re: 7.3.1 New install, large queries are slow
Date
Msg-id 20030116044847.GA29781@filer
Whole thread Raw
In response to Re: 7.3.1 New install, large queries are slow  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: 7.3.1 New install, large queries are slow  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance
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

pgsql-performance by date:

Previous
From: "Josh Berkus"
Date:
Subject: Re: 7.3.1 New install, large queries are slow
Next
From: Tom Lane
Date:
Subject: Re: 7.3.1 New install, large queries are slow