pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rod Taylor <rbt@rbt.ca>
To: Reiner Dassing <dassing@wettzell.ifag.de>
Cc: pgsql-sql@postgresql.org
Subject: Re: Indices are not used by the optimizer
Date: 05 May 2003 09:33:05 -0400
Message-ID: <1052141584.9846.24.camel@jester> (raw)
In-Reply-To: <3EB6561B.6070709@wettzell.ifag.de>
References: <3EB6561B.6070709@wettzell.ifag.de>

Are you really expecting 19 million rows to be returned -- are you
really going to use them all?

How about explain analyze output?

Have you tried using a cursor to allow for parallel processing? (pull
1000 rows, do work, pull next 1000 rows, do work, etc.)

> wetter=# explain select * from wetter where epoche > '2001-01-01';
>                                 QUERY PLAN
> -------------------------------------------------------------------------
>   Seq Scan on wetter  (cost=0.00..614795.55 rows=19054156 width=16)
>     Filter: (epoche > '2001-01-01 00:00:00+00'::timestamp with time zone)
> (2 rows)

-- 
Rod Taylor <rbt@rbt.ca>

PGP Key: http://www.rbt.ca/rbtpub.asc

Attachments:

  signature.asc (application/pgp-signature, 186B) download

view thread (3+ messages)  latest in thread

Message-ID: <1052141584.9846.24.camel@jester>
Permalink:  ../1052141584.9846.24.camel@jester/
Also on:    postgresql.org/message-id/1052141584.9846.24.camel@jester

 · 

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: rbt@rbt.ca, dassing@wettzell.ifag.de
  Subject: Re: Indices are not used by the optimizer
  In-Reply-To: <1052141584.9846.24.camel@jester>

* 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