Re: Creating indexes

From: Alan Hodgson <ahodgson(at)simkin(dot)ca>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Creating indexes
Date: 2008-05-08 19:52:30
Message-ID: 200805081252.33830@hal.medialogik.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Thursday 08 May 2008, Rauan Maemirov <rauan1987(at)gmail(dot)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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message PFC 2008-05-08 20:02:47 Re: Creating a foreign key
Previous Message Asche 2008-05-08 19:49:26 Re: Creating indexes