Skip site navigation (1) Skip section navigation (2)

Re: Q: Structured index - which one runs faster?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ernest E Vogelsinger <ernest(at)vogelsinger(dot)at>
Cc: "pgsql-admin" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Q: Structured index - which one runs faster?
Date: 2003-05-23 00:00:14
Message-ID: 12259.1053648014@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-adminpgsql-generalpgsql-performance
Ernest E Vogelsinger <ernest(at)vogelsinger(dot)at> writes:
> Do you know if there's a general performance difference between numeric
> (int4) and character (fixed-size char[5]) columns? The ident1 and ident2
> columns are planned to be char[5], only the third column (with least
> precedence) will be numeric.

int4 is certainly faster to compare than char(n), but I wouldn't contort
your database design on that basis... if the idents aren't naturally
integers, don't force them to be.

			regards, tom lane

In response to

pgsql-performance by date

Next:From: Stephan SzaboDate: 2003-05-23 06:42:36
Subject: Re: [ADMIN] Q: Structured index - which one runs faster?
Previous:From: Ernest E VogelsingerDate: 2003-05-22 23:43:06
Subject: Re: Q: Structured index - which one runs faster?

pgsql-admin by date

Next:From: Dawn HollingsworthDate: 2003-05-23 03:20:43
Subject: Database Backup/Restore with Inherited Tables
Previous:From: Ernest E VogelsingerDate: 2003-05-22 23:43:06
Subject: Re: Q: Structured index - which one runs faster?

pgsql-general by date

Next:From: lyris-pgDate: 2003-05-23 01:07:55
Subject: Re: fomatting an interval
Previous:From: Forest WilkinsonDate: 2003-05-22 23:48:28
Subject: Empty queries guaranteed to work?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group