Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 0E2802E0086 for ; Thu, 8 May 2008 16:30:14 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 77231-07 for ; Thu, 8 May 2008 16:30:07 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by developer.postgresql.org (Postfix) with ESMTP id 30D4E2E0057 for ; Thu, 8 May 2008 16:30:10 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.1/8.14.1) with ESMTP id m48JU5JK077939 for ; Thu, 8 May 2008 16:30:05 -0300 (ADT) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.1/8.14.1/Submit) id m48J0cn6060392 for pgsql-performance@postgresql.org; Thu, 8 May 2008 16:00:38 -0300 (ADT) (envelope-from news) From: Rauan Maemirov X-Newsgroups: pgsql.performance Subject: Creating indexes Date: Thu, 8 May 2008 12:00:39 -0700 (PDT) Organization: http://groups.google.com Lines: 7 Message-ID: <050368ea-4090-4d4e-aef7-b9f2ac06da56@x35g2000hsb.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: groups-abuse@google.com Complaints-To: groups-abuse@google.com Injection-Info: x35g2000hsb.googlegroups.com; posting-host=92.46.6.71; posting-account=sCTBRwoAAADRJIRI962hvdoQSVjIHQ76 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b5) Gecko/2008032620 Firefox/2.0.0.6;MEGAUPLOAD 1.0,gzip(gfe),gzip(gfe) To: pgsql-performance@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200805/129 X-Sequence-Number: 30097 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. For GiST and GIN there is a trouble that I must create operator class, so I limited myself to use btree or hash. But if it's better to use gist or gin, coment are welcome.