Re: Creating indexes - Mailing list pgsql-performance

From Alan Hodgson
Subject Re: Creating indexes
Date
Msg-id 200805081252.33830@hal.medialogik.com
Whole thread Raw
In response to Creating indexes  (Rauan Maemirov <rauan1987@gmail.com>)
List pgsql-performance
On Thursday 08 May 2008, Rauan Maemirov <rauan1987@gmail.com> wrote:
> Hi, all. I want to ask what type of index is better to create for
> bigint types. I have table with bigint (bigserial) primary key. What
> type is better to use for it? I tried btree and hash, but didn't
> notice any differences in execution time.

A primary key is a unique btree index, and it's as about as good as it gets
for a bigint.

--
Alan

Attachment

pgsql-performance by date:

Previous
From: Rauan Maemirov
Date:
Subject: Creating indexes
Next
From: Asche
Date:
Subject: Re: Creating indexes