pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Manfred Koizar <mkoi-pg@aon.at>
Cc: Andre Schubert <andre@km3.de>
Cc: pgsql-performance@postgresql.org
Subject: Re: problem with pg_statistics
Date: Thu, 26 Jun 2003 12:03:52 -0400
Message-ID: <25814.1056643432@sss.pgh.pa.us> (raw)
In-Reply-To: <h64mfv8quqjc19dv0ufm9oegj6p1rpeipp@4ax.com>
References: <20030626151515.5fd0faf0.andre@km3.de>
	<24083.1056636485@sss.pgh.pa.us>
	<h64mfv8quqjc19dv0ufm9oegj6p1rpeipp@4ax.com>

Manfred Koizar <mkoi-pg@aon.at> writes:
> On Thu, 26 Jun 2003 10:08:05 -0400, Tom Lane <tgl@sss.pgh.pa.us>
> wrote:
>> Try reducing random_page_cost

> With index scan cost being more than 25 * seq scan cost, I guess that
> - all other things held equal - even random_page_cost = 1 wouldn't
> help.

Oh, you're right, I was comparing the wrong estimated costs.  Yeah,
changing random_page_cost won't fix it.

> Or there's something wrong with correlation?

That seems like a good bet.  Andre, is this table likely to be
physically ordered by time_stamp, or nearly so?  If so, do you
expect that condition to persist, or is it just an artifact of
a test setup?

			regards, tom lane



view thread (9+ messages)  latest in thread

Message-ID: <25814.1056643432@sss.pgh.pa.us>
Permalink:  ../25814.1056643432@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25814.1056643432@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mkoi-pg@aon.at, andre@km3.de
  Subject: Re: problem with pg_statistics
  In-Reply-To: <25814.1056643432@sss.pgh.pa.us>
  References: <20030626151515.5fd0faf0.andre@km3.de> <24083.1056636485@sss.pgh.pa.us> <h64mfv8quqjc19dv0ufm9oegj6p1rpeipp@4ax.com> <25814.1056643432@sss.pgh.pa.us>

* 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