pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Frank Lanitz <frank@frank.uvena.de>
To: pgsql-sql@postgresql.org
Subject: Re: query doesn't always follow 'correct' path..
Date: Mon, 18 Feb 2013 11:51:11 +0100
Message-ID: <5122079F.6090306@frank.uvena.de> (raw)
In-Reply-To: <CAFCtE1nDc3t-2eXAuHatanQREvYnHRkEH2oGxU-nmWLpDj=Lpw@mail.gmail.com>
References: <CAFCtE1nDc3t-2eXAuHatanQREvYnHRkEH2oGxU-nmWLpDj=Lpw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>

Am 18.02.2013 10:43, schrieb Bert:
> Does anyone has an idea what triggers this bad plan, and how I can fix it?

Looks a bit like wrong statistics. Are the statistiks for your tables
correct?

Cheers,
Frank


-- 
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql



view thread (8+ messages)  latest in thread

Message-ID: <5122079F.6090306@frank.uvena.de>
Permalink:  ../5122079F.6090306@frank.uvena.de/
Also on:    postgresql.org/message-id/5122079F.6090306@frank.uvena.de

 · 

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-sql@postgresql.org
  Cc: frank@frank.uvena.de
  Subject: Re: query doesn't always follow 'correct' path..
  In-Reply-To: <5122079F.6090306@frank.uvena.de>

* 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