Re: About when we should setup index?

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Emi Lu <emilu(at)encs(dot)concordia(dot)ca>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: About when we should setup index?
Date: 2006-03-07 16:38:25
Message-ID: 20060307163825.GA26385@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Mar 07, 2006 at 09:54:11AM -0500, Emi Lu wrote:
> Thank you very much Michael. Your inputs are very helpful for me. Just
> have one small question, the example you gave is based on postgresql
> 8.1, does it apply to PostgreSQL 8.0.1 as well (i686-pc-linux-gnu,
> compiled by GCC gcc 3.3.2)?

What example? I only mentioned 8.1 in the context of queries against
low-cardinality columns (columns with only a few distinct values) but
I didn't show an example of that.

> >Yes. When you issue the CREATE TABLE statement you should see a
> >notice like the following:
> >
> >CREATE TABLE / PRIMARY KEY will create implicit index "test_pkey" for
> >table "test"

Is this the example you meant? Earlier versions of PostgreSQL work
the same way.

--
Michael Fuhr

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Emi Lu 2006-03-07 18:02:25 how to setup default privileges
Previous Message Tom Lane 2006-03-07 15:25:36 Re: per-statement, after, what's new?