Re: Performance

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: jeandre(at)itvs(dot)co(dot)za
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Performance
Date: 2003-02-07 15:13:58
Message-ID: 26909.1044630838@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

jeandre(at)itvs(dot)co(dot)za writes:
> In the documentation I saw something about different index types. In
> Sybase you create an index and that is it. How do you choose what type of
> index to create on a column in Postgres?

There's an optional clause in the CREATE INDEX command --- I think
"USING access_method", but check the man page.

In practice, 99.44% of indexes are the default btree type, so you
usually don't need to think about it. I'd only use a non-btree index
if I needed to index non-scalar data (arrays, geometric types, etc);
the GIST and RTREE index types are designed for those.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message jeandre 2003-02-07 15:38:26 Re: Performance
Previous Message jeandre 2003-02-07 15:04:52 Re: Performance