From: Asche <asche.public@mac.com>
To: pgsql-performance@postgresql.org
Subject: Re: Creating indexes
Date: Thu, 8 May 2008 21:49:26 +0200
Message-ID: <8A21EAB9-9D04-480F-A952-4294178F4374@mac.com> (raw)
In-Reply-To: <050368ea-4090-4d4e-aef7-b9f2ac06da56@x35g2000hsb.googlegroups.com>
References: <050368ea-4090-4d4e-aef7-b9f2ac06da56@x35g2000hsb.googlegroups.com>
Hi,
> 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
http://www.postgresql.org/docs/8.3/static/sql-createtable.html
PostgreSQL automatically creates an index for each unique constraint
and primary key constraint to enforce uniqueness. Thus, it is not
necessary to create an index explicitly for primary key columns.
> type is better to use for it? I tried btree and hash, but didn't
You already have an index on your bigint primary key. I think it is of
type btree.
Jan
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: asche.public@mac.com
Subject: Re: Creating indexes
In-Reply-To: <8A21EAB9-9D04-480F-A952-4294178F4374@mac.com>
References: <050368ea-4090-4d4e-aef7-b9f2ac06da56@x35g2000hsb.googlegroups.com> <8A21EAB9-9D04-480F-A952-4294178F4374@mac.com>
* 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