pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Neil Conway <neilc@samurai.com>
To: Jaime Casanova <el_vigia_ec@hotmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: numeric data types
Date: Sat, 15 May 2004 22:27:47 -0400
Message-ID: <1084674467.25578.115.camel@tokyo> (raw)
In-Reply-To: <BAY8-F54u8bA5G1NmK30001fe89@hotmail.com>
References: <BAY8-F54u8bA5G1NmK30001fe89@hotmail.com>

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





view thread (3+ messages)

Message-ID: <1084674467.25578.115.camel@tokyo>
Permalink:  ../1084674467.25578.115.camel@tokyo/
Also on:    postgresql.org/message-id/1084674467.25578.115.camel@tokyo

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: neilc@samurai.com, el_vigia_ec@hotmail.com
  Subject: Re: numeric data types
  In-Reply-To: <1084674467.25578.115.camel@tokyo>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox