pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nick Massaro <NMASSARO@co.jefferson.co.us>
To: pgsql-sql@postgresql.org
Subject: force indexed search?
Date: Fri, 08 Jan 1999 16:25:11 -0700
Message-ID: <s6963183.080@gwgate.jefferson.co.us> (raw)

Is there a way to force postgresql to use indexing on a select statement containing "or"? 


this SQL statement uses indexing... 
  SELECT name, hsno, area FROM parc WHERE pin = '40-002' ; 
  

This SQL statement uses sequential search... 

  SELECT name, hsno, area FROM parc WHERE pin = '40-002' or pin = '40-106' or 
    pin = '40-013' ; 






Message-ID: <s6963183.080@gwgate.jefferson.co.us>
Permalink:  ../s6963183.080@gwgate.jefferson.co.us/
Also on:    postgresql.org/message-id/s6963183.080@gwgate.jefferson.co.us

 · 

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-sql@postgresql.org
  Cc: NMASSARO@co.jefferson.co.us
  Subject: Re: force indexed search?
  In-Reply-To: <s6963183.080@gwgate.jefferson.co.us>
  References: <s6963183.080@gwgate.jefferson.co.us>

* 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