From: Tom Lane <tgl@sss.pgh.pa.us>
To: jeandre@itvs.co.za
Cc: pgsql-performance@postgresql.org
Subject: Re: Performance
Date: Fri, 07 Feb 2003 10:13:58 -0500
Message-ID: <26909.1044630838@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.44.0302071703230.2929-100000@localhost.localdomain>
References: <Pine.LNX.4.44.0302071703230.2929-100000@localhost.localdomain>
jeandre@itvs.co.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
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, jeandre@itvs.co.za
Subject: Re: Performance
In-Reply-To: <26909.1044630838@sss.pgh.pa.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