pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rhaoni Chiu Pereira <rhaoni@sistemica.info>
To: Lista PostgreSQL <pgsql-admin@postgresql.org>
Subject: How to force an Index ?
Date: Tue, 26 Aug 2003 16:11:56 -0300
Message-ID: <1061925115.3f4bb0fc02758@www.sistemica.info> (raw)

Hi List,

     I'm looking for a way to force an Index to be used in a SQL query. In a 
Oracle SQL query it would be like: 

    Select /*+ my_index*/ * from my_table where my_name="rhaoni";

   So it would use the index my_index to execute the query. How can I make this 
in a PostgreSQL SQL query.

Atenciosamente,

Rhaoni Chiu Pereira
Sistêmica Computadores

Visite-nos na Web: http://sistemica.info
Fone/Fax : +55 51 3328 1122








view thread (9+ messages)  latest in thread

Message-ID: <1061925115.3f4bb0fc02758@www.sistemica.info>
Permalink:  ../1061925115.3f4bb0fc02758@www.sistemica.info/
Also on:    postgresql.org/message-id/1061925115.3f4bb0fc02758@www.sistemica.info

 · 

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: rhaoni@sistemica.info
  Subject: Re: How to force an Index ?
  In-Reply-To: <1061925115.3f4bb0fc02758@www.sistemica.info>
  References: <1061925115.3f4bb0fc02758@www.sistemica.info>

* 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