pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Graham Vickrage <graham@digitalplanit.com>
To: R D <mrk279@yahoo.com>
To: pgsql-admin@postgresql.org
Subject: RE: Index usage ?
Date: Tue, 12 Dec 2000 17:17:56 -0000
Message-ID: <NDBBJABDILOPAOOMFJHOEEFHCGAA.graham@digitalplanit.com> (raw)
In-Reply-To: <20001212141948.3463.qmail@web10002.mail.yahoo.com>

I am having similar problems at the moment, the query planner seems to be a
little out when deciding which method to use.

I disabled the use of seq scans using

SET ENABLE_SEQSCAN = NO;

and the query that used to take 3.03 minutes now takes 5-7 secs. (v7.0
approx 3.5 million rows)

However this has raised a few questions of my own ie. can this setting be
forced permanently (rather than for each session) and on individual dbs? It
is almost certainly the case that this particular table/db is a special case
and I do not want to force index scans on the other dbs.

Cheers

Graham

-----Original Message-----
From: pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org]On Behalf Of R D
Sent: 12 December 2000 14:20
To: pgsql-admin@postgresql.org
Subject: [ADMIN] Index usage ?


Hi,
I'm making a database with table of over 50 000 000 i
created index on some columns but they are used only
in range search (e.g. WHERE column<100 AND column>10)
and point rearch (e.g. WHERE column=100). When I try
to execute some queries using only <,>,<= or >=  index
is not used.

 So is there any way to force ysage of the index with
this conditions.
I'm using BTREE as noted in Pg users guide.

please help!

regards,
Rumen

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/




view thread (2+ messages)

Message-ID: <NDBBJABDILOPAOOMFJHOEEFHCGAA.graham@digitalplanit.com>
Permalink:  ../NDBBJABDILOPAOOMFJHOEEFHCGAA.graham@digitalplanit.com/
Also on:    postgresql.org/message-id/NDBBJABDILOPAOOMFJHOEEFHCGAA.graham@digitalplanit.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 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-admin@postgresql.org
  Cc: graham@digitalplanit.com, mrk279@yahoo.com
  Subject: Re: Index usage ?
  In-Reply-To: <NDBBJABDILOPAOOMFJHOEEFHCGAA.graham@digitalplanit.com>
  References: <20001212141948.3463.qmail@web10002.mail.yahoo.com> <NDBBJABDILOPAOOMFJHOEEFHCGAA.graham@digitalplanit.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