Re: b-tree index performance

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Ron Johnson <ron(dot)l(dot)johnson(at)cox(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: b-tree index performance
Date: 2006-12-15 13:50:00
Message-ID: 20061215135000.GK958@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Dec 15, 2006 at 07:44:16AM -0600, Ron Johnson wrote:
> > 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.
>
> And comparing INT8 is more expensive on a 32-bit system.

The difference between int4 and int8 is probably negligable.

> Since TEXT is totally variable, is there a big difference in TEXT vs
> CHAR(8)?

Nothing measurable I'd think. It's probably the same code.

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron Johnson 2006-12-15 14:17:46 Re: b-tree index performance
Previous Message Henrik Zagerholm 2006-12-15 13:48:48 Re: Needed files - embedded postgres