| From: | Kevin Brown <kevin(at)sysexperts(dot)com> |
|---|---|
| To: | pgsql-performance(at)postgresql(dot)org |
| Subject: | Re: 7.3.1 New install, large queries are slow |
| Date: | 2003-01-16 04:48:47 |
| Message-ID: | 20030116044847.GA29781@filer |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-performance |
Tom Lane wrote:
> "Roman Fail" <rfail(at)posportal(dot)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(at)sysexperts(dot)com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2003-01-16 05:07:52 | Re: 7.3.1 New install, large queries are slow |
| Previous Message | Josh Berkus | 2003-01-16 04:41:11 | Re: 7.3.1 New install, large queries are slow |