Received: from localhost (unknown [200.46.204.184]) by developer.postgresql.org (Postfix) with ESMTP id 71D912E0081 for ; Thu, 8 May 2008 17:22:07 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 02354-03-7 for ; Thu, 8 May 2008 17:21:39 -0300 (ADT) Received: from mx1.hub.org (mx1.hub.org [200.46.208.106]) by developer.postgresql.org (Postfix) with ESMTP id 04CA02E005A for ; Thu, 8 May 2008 17:20:24 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from skynet.simkin.ca (skynet.simkin.ca [72.51.27.117]) by mx1.hub.org (Postfix) with ESMTP id 1D3C6B0882C for ; Thu, 8 May 2008 17:19:14 -0300 (ADT) Received: from charon.medialogik.com (charon.medialogik.com [72.51.27.114]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by skynet.simkin.ca (Postfix) with ESMTP id E78244713 for ; Thu, 8 May 2008 12:52:34 -0700 (PDT) From: Alan Hodgson Organization: Simkin Network Consulting To: pgsql-performance@postgresql.org Subject: Re: Creating indexes Date: Thu, 8 May 2008 12:52:30 -0700 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) References: <050368ea-4090-4d4e-aef7-b9f2ac06da56@x35g2000hsb.googlegroups.com> In-Reply-To: <050368ea-4090-4d4e-aef7-b9f2ac06da56@x35g2000hsb.googlegroups.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart7305063.0p1Vy6vbTL"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200805081252.33830@hal.medialogik.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200805/130 X-Sequence-Number: 30098 --nextPart7305063.0p1Vy6vbTL Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 08 May 2008, Rauan Maemirov 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.=20 A primary key is a unique btree index, and it's as about as good as it gets= =20 for a bigint. =2D-=20 Alan --nextPart7305063.0p1Vy6vbTL Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBII1oBJmf5OzX07HQRAmIKAJ9nxB9wGstt5zKbB+ff6pryuTFQ8QCfaPdB MwQsTwy5d/FjezcAJDGjaZo= =/Vqe -----END PGP SIGNATURE----- --nextPart7305063.0p1Vy6vbTL--