pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Stark <gsstark@mit.edu>
To: Jared Carr <jared@89glass.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Greg Stark <gsstark@mit.edu>
Cc: pgsql-performance@postgresql.org
Subject: Re: A question on the query planner
Date: 03 Dec 2003 14:32:50 -0500
Message-ID: <87k75d66jh.fsf@stark.dyndns.tv> (raw)
In-Reply-To: <3FCE2B08.6090606@89glass.com>
References: <3FCBB639.10409@89glass.com>
	<1070385381.24915.8650.camel@camel>
	<3FCCD225.8030609@89glass.com>
	<87d6b79har.fsf@stark.dyndns.tv>
	<3FCCE48B.10406@89glass.com>
	<871xrn9e09.fsf@stark.dyndns.tv>
	<3FCCF61E.90307@89glass.com>
	<87ptf697h0.fsf@stark.dyndns.tv>
	<25476.1070409047@sss.pgh.pa.us>
	<87znea7kis.fsf@stark.dyndns.tv>
	<26699.1070423607@sss.pgh.pa.us>
	<2704.1070473746@sss.pgh.pa.us>
	<3FCE2B08.6090606@89glass.com>

Jared Carr <jared@89glass.com> writes:

> The patch definitely makes things more consistent...unfortunately it is more
> consistent toward the slower execution times. Of course I am looking at this
> simply from a straight performance standpoint and not a viewpoint of what
> *should* be happening. At any rate here are the query plans with the various
> settings.

The optimizer seems to be at least considering reasonable plans now. It seems
from the estimates that you need to rerun analyze. You might try "vacuum full
analyze" to be sure.

Also, you might try raising effective_cache_size and/or lowering
random_page_size (it looks like something around 2 might help).

-- 
greg




view thread (19+ messages)  latest in thread

Message-ID: <87k75d66jh.fsf@stark.dyndns.tv>
Permalink:  ../87k75d66jh.fsf@stark.dyndns.tv/
Also on:    postgresql.org/message-id/87k75d66jh.fsf@stark.dyndns.tv

 · 

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: gsstark@mit.edu, jared@89glass.com, tgl@sss.pgh.pa.us
  Subject: Re: A question on the query planner
  In-Reply-To: <87k75d66jh.fsf@stark.dyndns.tv>

* 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