From: Ross J. Reedstrom <reedstrm@wallace.ece.rice.edu>
To: pgsql-sql@postgreSQL.org
Cc: Clayton Cottingham <drfrog@smartt.com>
Subject: Re: [SQL] quest:optimization with indexes
Date: Wed, 11 Aug 1999 09:12:57 -0500
Message-ID: <19990811091257.A2912@wallace.ece.rice.edu> (raw)
In-Reply-To: <l03130302b3d727c777c5@[147.233.159.109]>
References: <37B0AAE0.926AE58D@smartt.com>
<l03130302b3d727c777c5@[147.233.159.109]>
On Wed, Aug 11, 1999 at 04:30:13PM +0300, Herouth Maoz wrote:
> At 01:42 +0300 on 11/08/1999, Clayton Cottingham wrote:
> >
> > where/what rules should be followed for setting up a good indexing
> > scheme under pg?
>
<snipped Herouth's good summation of the rules of indices>
One thing to add: after adding your index, vacuum analyze you table, or else
the optimizer may thing you've only got a few rows in your table, and refuse
to use the indices, because it thinks sequential scans are relatively cheap.
Ross
--
Ross J. Reedstrom, Ph.D., <reedstrm@rice.edu>
NSBRI Research Scientist/Programmer
Computer and Information Technology Institute
Rice University, 6100 S. Main St., Houston, TX 77005
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: reedstrm@wallace.ece.rice.edu, drfrog@smartt.com
Subject: Re: [SQL] quest:optimization with indexes
In-Reply-To: <19990811091257.A2912@wallace.ece.rice.edu>
References: <37B0AAE0.926AE58D@smartt.com> <l03130302b3d727c777c5@[147.233.159.109]> <19990811091257.A2912@wallace.ece.rice.edu>
* 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