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

Set random_page_cost = 2 solved the problem. thanks

On Thu, Feb 21, 2008 at 6:16 PM, Claus Guttesen <kometen@gmail.com> wrote:

> > > > 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?
> >
> > Postgresql v. 8.2.1
>
> You can try to lower this value. The default (in 8.3) is 4.
>
> --
> 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: <8a5d3c890802211323j2a7e2ebdye42f988222046e44@mail.gmail.com>
Permalink:  ../8a5d3c890802211323j2a7e2ebdye42f988222046e44@mail.gmail.com/
Also on:    postgresql.org/message-id/8a5d3c890802211323j2a7e2ebdye42f988222046e44@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: malosso@gmail.com, kometen@gmail.com
  Subject: Re: 4s query want to run faster
  In-Reply-To: <8a5d3c890802211323j2a7e2ebdye42f988222046e44@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