pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone.bigpanda.com>
To: Frank van Vugt <ftm.van.vugt@foxi.nl>
Cc: pgsql-performance@postgresql.org
Subject: Re: *very* inefficient choice made by the planner (regarding
Date: Thu, 10 Jun 2004 08:00:28 -0700 (PDT)
Message-ID: <20040610075749.G17875@megazone.bigpanda.com> (raw)
In-Reply-To: <200406101624.21739.ftm.van.vugt@foxi.nl>
References: <200406101624.21739.ftm.van.vugt@foxi.nl>


On Thu, 10 Jun 2004, Frank van Vugt wrote:

> Could anybody explain why the planner is doing what it is doing?
>
> What could I do to make it easier to choose a better plan?

You might try raising sort_mem to see if it chooses a better plan.  I
think it may be guessing that the hash won't fit and falling back to the
plan you were getting.




view thread (12+ messages)  latest in thread

Message-ID: <20040610075749.G17875@megazone.bigpanda.com>
Permalink:  ../20040610075749.G17875@megazone.bigpanda.com/
Also on:    postgresql.org/message-id/20040610075749.G17875@megazone.bigpanda.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: sszabo@megazone.bigpanda.com, ftm.van.vugt@foxi.nl
  Subject: Re: *very* inefficient choice made by the planner (regarding
  In-Reply-To: <20040610075749.G17875@megazone.bigpanda.com>

* 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