Re: b-tree index performance - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: b-tree index performance
Date
Msg-id 20061215114109.GG958@svana.org
Whole thread Raw
In response to b-tree index performance  ("Yonatan Ben-Nes" <yonatan@epoch.co.il>)
Responses Re: b-tree index performance  (Ron Johnson <ron.l.johnson@cox.net>)
List pgsql-general
On Fri, Dec 15, 2006 at 01:13:00PM +0200, Yonatan Ben-Nes wrote:
> Hi all,
>
> I was wondering does the b-tree index performance change when it's
> implemented on different data types fields? is it better to use one of them
> instead of the other for (=) comparisons?
> I'm especially interested between INT8 and TEXT data types.

The difference in performence will be determined by the cost of
comparison. The cost of comparing strings is much higher than for
integers, so it will be slower.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Attachment

pgsql-general by date:

Previous
From: "Yonatan Ben-Nes"
Date:
Subject: b-tree index performance
Next
From: Ragnar
Date:
Subject: Re: Needed files - embedded postgres