pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Emil Briggs <emil@baymountain.com>
To: John A Meinel <john@arbash-meinel.com>
Cc: Postgresql Performance <pgsql-performance@postgresql.org>
Subject: Re: Planner constants for RAM resident databases
Date: Sat, 2 Jul 2005 09:44:07 -0400
Message-ID: <200507020944.07339.emil@baymountain.com> (raw)
In-Reply-To: <42C606AA.8060406@arbash-meinel.com>
References: <200507012159.39041.emil@baymountain.com>
	<200507012311.37942.emil@baymountain.com>
	<42C606AA.8060406@arbash-meinel.com>

> When you do "explain analyze" of a query that you have difficulties
> with, how are the planner's estimates. Are the estimated number of rows
> about equal to the actual number of rows?

Some of them are pretty far off. For example

  ->  Merge Left Join  (cost=9707.71..13993.52 rows=1276 width=161) (actual 
time=164.423..361.477 rows=49 loops=1)

I tried setting enable_merge_joins to off and that made the query about three 
times faster. It's using a hash join instead.



view thread (6+ messages)  latest in thread

Message-ID: <200507020944.07339.emil@baymountain.com>
Permalink:  ../200507020944.07339.emil@baymountain.com/
Also on:    postgresql.org/message-id/200507020944.07339.emil@baymountain.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: emil@baymountain.com, john@arbash-meinel.com
  Subject: Re: Planner constants for RAM resident databases
  In-Reply-To: <200507020944.07339.emil@baymountain.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