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@xxxxxxxxx> http://svana.org/kleptog/ > From each according to his ability. To each according to his ability to litigate.
Attachment:
signature.asc
Description: Digital signature