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 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-general pgsql-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
From | Date | Subject | |
---|---|---|---|
Next Message | Dawn Hollingsworth | 2003-05-23 03:20:43 | Database Backup/Restore with Inherited Tables |
Previous Message | Ernest E Vogelsinger | 2003-05-22 23:43:06 | Re: Q: Structured index - which one runs faster? |
From | Date | Subject | |
---|---|---|---|
Next Message | lyris-pg | 2003-05-23 01:07:55 | Re: fomatting an interval |
Previous Message | Forest Wilkinson | 2003-05-22 23:48:28 | Empty queries guaranteed to work? |
From | Date | Subject | |
---|---|---|---|
Next Message | Stephan Szabo | 2003-05-23 06:42:36 | Re: [ADMIN] Q: Structured index - which one runs faster? |
Previous Message | Ernest E Vogelsinger | 2003-05-22 23:43:06 | Re: Q: Structured index - which one runs faster? |