pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: ow <oneway_111@yahoo.com>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: pg 7.4.rc1, Range query performance
Date: Mon, 10 Nov 2003 17:10:39 -0800 (PST)
Message-ID: <20031111011039.18349.qmail@web21402.mail.yahoo.com> (raw)
In-Reply-To: <200311110050.hAB0ouQ11856@candle.pha.pa.us>

--- Bruce Momjian <pgman@candle.pha.pa.us> wrote:
> Strange 30 records takes 30x the time than one record.  Can you run
> ANALYZE and send us an EXPLAIN of the query to make sure it hasn't
> changed?
> 

explain analyze select * from Test
where a >= '2002-06-18'
  and a <= '2002-07-18'
  and b = 5
  and c = 255

QUERY PLAN
Index Scan using ak_abc on test  (cost=0.00..121.23 rows=34 width=53) (actual
time=18.060..10726.387 rows=31 loops=1)
  Index Cond: (((a)::timestamp without time zone >= '2002-06-18
00:00:00'::timestamp without time zone) AND ((a)::timestamp without time zone
<= '2002-07-18 00:00:00'::timestamp without time zone) AND ((b)::integer = 5)
AND ((c) (..)
Total runtime: 10726.663 ms

Thanks







__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree



view thread (12+ messages)  latest in thread

Message-ID: <20031111011039.18349.qmail@web21402.mail.yahoo.com>
Permalink:  ../20031111011039.18349.qmail@web21402.mail.yahoo.com/
Also on:    postgresql.org/message-id/20031111011039.18349.qmail@web21402.mail.yahoo.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-sql@postgresql.org
  Cc: oneway_111@yahoo.com, pgman@candle.pha.pa.us
  Subject: Re: pg 7.4.rc1, Range query performance
  In-Reply-To: <20031111011039.18349.qmail@web21402.mail.yahoo.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