pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: postgresql@foo.me.uk
To: 'postgres performance list' <pgsql-performance@postgresql.org>
Subject: Re: Slow query: bitmap scan troubles
Date: Thu, 6 Dec 2012 12:56:26 -0000
Message-ID: <0b8b01cdd3b1$1a55b8b0$4f012a10$@foo.me.uk> (raw)
In-Reply-To: <CAL_0b1vkyXYYpCxbFvu-4Piem10Y-tPz50MRO-mp3QMbkF1mEQ@mail.gmail.com>
References: <092a01cdd230$ff6143c0$fe23cb40$@foo.me.uk>
	<CAGTBQpaKOfZs+qy+S7CCPcTg7PYOrwgcQAXgWV88cQTn-BFstg@mail.gmail.com>
	<CAMkU=1wEc1cCeUdR1oZ3Q2fe2pGj6tvrwRcY2obbfEk8LcNypQ@mail.gmail.com>
	<CAGTBQpbqzBf5545-qxdLQHbLyBBOvxn3hEtjQmqEp+UJPKsSrA@mail.gmail.com>
	<096f01cdd247$722264a0$56672de0$@foo.me.uk>
	<CAL_0b1vkyXYYpCxbFvu-4Piem10Y-tPz50MRO-mp3QMbkF1mEQ@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

> I also wonder if increasing (say x10) of default_statistics_target or just
doing ALTER TABLE SET STATISTICS for particular tables will help.
> It will make planned to produce more precise estimations. Do not forget
ANALYZE afer changing it.

Thanks Sergey, I will try this too.

I think the bother here is that this statistics are pretty good (we do
analyse regularly and default_statistics_target is already 1000), but once I
start filtering the two tables the correlations alter quite a bit. I don't
think there is that much that can be done about that :)

- Phil




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



view thread (54+ messages)  latest in thread

Message-ID: <0b8b01cdd3b1$1a55b8b0$4f012a10$@foo.me.uk>
Permalink:  ../0b8b01cdd3b1$1a55b8b0$4f012a10$@foo.me.uk/
Also on:    postgresql.org/message-id/0b8b01cdd3b1$1a55b8b0$4f012a10$@foo.me.uk

 · 

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: postgresql@foo.me.uk
  Subject: Re: Slow query: bitmap scan troubles
  In-Reply-To: <0b8b01cdd3b1$1a55b8b0$4f012a10$@foo.me.uk>

* 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