Re: numeric data types

From: Neil Conway <neilc(at)samurai(dot)com>
To: Jaime Casanova <el_vigia_ec(at)hotmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: numeric data types
Date: 2004-05-16 02:27:47
Message-ID: 1084674467.25578.115.camel@tokyo
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Fri, 2004-05-14 at 17:08, Jaime Casanova wrote:
> is there any diff. in performance if i use smallint in place of integer?

Assuming you steer clear of planner deficiencies, smallint should be
slightly faster (since it consumes less disk space), but the performance
difference should be very small. Also, alignment/padding considerations
may mean that smallint doesn't actually save any space anyway.

-Neil

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Richard Huxton 2004-05-17 17:04:54 Re: filesystem option tuning
Previous Message Tom Lane 2004-05-15 16:00:33 Re: TPCH 100GB - need some help