pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dennis <dennis@zserve.com>
To: pgsql-sql@postgresql.org
Subject: Force query to use index
Date: Mon, 18 Jun 2001 11:33:43 -0600
Message-ID: <9gle1o$22jr$2@news.tht.net> (raw)

Can you force a query to use a specific index?

Can I for instance say:

select * from tableA where user = 'soandso' and someint = -1 and somedata = 
'foo' ;

and somewhere in that query tell it to use the tableA_suchandsuch index?


-Dennis



Message-ID: <9gle1o$22jr$2@news.tht.net>
Permalink:  ../9gle1o$22jr$2@news.tht.net/
Also on:    postgresql.org/message-id/9gle1o$22jr$2@news.tht.net

 · 

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: dennis@zserve.com
  Subject: Re: Force query to use index
  In-Reply-To: <9gle1o$22jr$2@news.tht.net>

* 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