pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jaime Casanova <el_vigia_ec@hotmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: numeric data types
Date: Sat, 15 May 2004 00:03:16 -0400
Message-ID: <3209.1084593796@sss.pgh.pa.us> (raw)
In-Reply-To: <BAY8-F54u8bA5G1NmK30001fe89@hotmail.com>
References: <BAY8-F54u8bA5G1NmK30001fe89@hotmail.com>

"Jaime Casanova" <el_vigia_ec@hotmail.com> writes:
> i have a question, is there any advantages in using numeric(1) or numeric(2) 
> in place of smallint?

Performance-wise, smallint is an order of magnitude better.

			regards, tom lane



view thread (3+ messages)  latest in thread

Message-ID: <3209.1084593796@sss.pgh.pa.us>
Permalink:  ../3209.1084593796@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3209.1084593796@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, el_vigia_ec@hotmail.com
  Subject: Re: numeric data types
  In-Reply-To: <3209.1084593796@sss.pgh.pa.us>

* 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