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: Thu, 16 Jan 2003 02:40:25 -0800
Message-ID: <20030116104025.GB29781@filer> (raw)
In-Reply-To: <11770.1042693672@sss.pgh.pa.us>
References: <9B1C77393DED0D4B9DAA1AA1742942DA0E4BFD@pos_pdc.posportal.com>
	<11547.1042691700@sss.pgh.pa.us>
	<20030116044847.GA29781@filer>
	<11770.1042693672@sss.pgh.pa.us>

Tom Lane wrote:
> Kevin Brown <kevin@sysexperts.com> writes:
> > Tom Lane wrote:
> >> ... 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 have no objection to doing that --- anyone care to contribute code to
> make it happen?  (I think the trick would be to fold plain-JOIN jointree
> entries into FROM-list items in planner.c, somewhere near the code that
> hoists sub-SELECTs into the main join tree.  But I haven't tried it, and
> have no time to in the near future.)

I'm looking at the code now (the 7.2.3 code in particular, but I
suspect for this purpose the code is likely to be very similar to the
CVS tip), but it's all completely new to me and the developer
documentation isn't very revealing of the internals.  The optimizer
code (I've been looking especially at make_jointree_rel() and
make_fromexpr_rel()) looks a bit tricky...it'll take me some time to
completely wrap my brain around it.  Any pointers to revealing
documentation would be quite helpful!


-- 
Kevin Brown					      kevin@sysexperts.com



view thread (66+ messages)  latest in thread

Message-ID: <20030116104025.GB29781@filer>
Permalink:  ../20030116104025.GB29781@filer/
Also on:    postgresql.org/message-id/20030116104025.GB29781@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: <20030116104025.GB29781@filer>
  References: <9B1C77393DED0D4B9DAA1AA1742942DA0E4BFD@pos_pdc.posportal.com> <11547.1042691700@sss.pgh.pa.us> <20030116044847.GA29781@filer> <11770.1042693672@sss.pgh.pa.us> <20030116104025.GB29781@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