pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Brown <kevin@sysexperts.com>
To: pgsql-performance@postgresql.org
Subject: Re: 7.3.1 New install, large queries are slow
Date: Wed, 15 Jan 2003 20:48:47 -0800
Message-ID: <20030116044847.GA29781@filer> (raw)
In-Reply-To: <11547.1042691700@sss.pgh.pa.us>
References: <9B1C77393DED0D4B9DAA1AA1742942DA0E4BFD@pos_pdc.posportal.com>
	<11547.1042691700@sss.pgh.pa.us>

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



view thread (66+ messages)  latest in thread

Message-ID: <20030116044847.GA29781@filer>
Permalink:  ../20030116044847.GA29781@filer/
Also on:    postgresql.org/message-id/20030116044847.GA29781@filer

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: kevin@sysexperts.com
  Subject: Re: 7.3.1 New install, large queries are slow
  In-Reply-To: <20030116044847.GA29781@filer>
  References: <9B1C77393DED0D4B9DAA1AA1742942DA0E4BFD@pos_pdc.posportal.com> <11547.1042691700@sss.pgh.pa.us> <20030116044847.GA29781@filer>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox