pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Claus Guttesen <kometen@gmail.com>
To: Adonias Malosso <malosso@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: 4s query want to run faster
Date: Thu, 21 Feb 2008 22:10:24 +0100
Message-ID: <b41c75520802211310j40c51014y5d6fbc56bf38c467@mail.gmail.com> (raw)
In-Reply-To: <8a5d3c890802211248k7d9dfbb5ndd645358a84130a7@mail.gmail.com>
References: <8a5d3c890802211248k7d9dfbb5ndd645358a84130a7@mail.gmail.com>

> The following query takes about 4s to run in a 16GB ram server. Any ideas
> why it doesn´t use index for the primary keys in the join conditions?

Maby random_page_cost is set too high? What version are you using?

-- 
regards
Claus

When lenity and cruelty play for a kingdom,
the gentlest gamester is the soonest winner.

Shakespeare



view thread (12+ messages)  latest in thread

Message-ID: <b41c75520802211310j40c51014y5d6fbc56bf38c467@mail.gmail.com>
Permalink:  ../b41c75520802211310j40c51014y5d6fbc56bf38c467@mail.gmail.com/
Also on:    postgresql.org/message-id/b41c75520802211310j40c51014y5d6fbc56bf38c467@mail.gmail.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: kometen@gmail.com, malosso@gmail.com
  Subject: Re: 4s query want to run faster
  In-Reply-To: <b41c75520802211310j40c51014y5d6fbc56bf38c467@mail.gmail.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