pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
Index usage ? 2+ messages / 2 participants [nested] [flat]
* Index usage ? @ 2000-12-12 14:19 R D <mrk279@yahoo.com> 0 siblings, 1 reply; 2+ messages in thread From: R D @ 2000-12-12 14:19 UTC (permalink / raw) To: pgsql-admin 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/ ^ permalink raw reply [nested|flat] 2+ messages in thread
* RE: Index usage ? @ 2000-12-12 17:17 Graham Vickrage <graham@digitalplanit.com> parent: R D <mrk279@yahoo.com> 0 siblings, 0 replies; 2+ messages in thread From: Graham Vickrage @ 2000-12-12 17:17 UTC (permalink / raw) To: R D <mrk279@yahoo.com>; pgsql-admin 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/ ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2000-12-12 17:17 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2000-12-12 14:19 Index usage ? R D <mrk279@yahoo.com> 2000-12-12 17:17 ` Graham Vickrage <graham@digitalplanit.com>
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