pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Franco Bruno Borghesi <franco@akyasociados.com.ar>
To: Josh Berkus <josh@agliodbs.com>
Cc: Yusuf W. <unicef2k@yahoo.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Performance: BigInt vs Decimal(19,0)
Date: Mon, 29 Sep 2003 11:59:27 -0300
Message-ID: <1064847566.690.15.camel@taz> (raw)
In-Reply-To: <200309272006.42462.josh@agliodbs.com>
References: <20030928023936.66818.qmail@web40408.mail.yahoo.com>
	<200309272006.42462.josh@agliodbs.com>

Wouldn't it be the most portable solution to work with a domain?
CREATE DOMAIN BIG_NUMBER AS BIGINT;

If I use BIG_NUMBER everywhere I need it in my database, porting it to
other database products should be easy... any SQL 92 compliant dbms
should support domains.

On Sun, 2003-09-28 at 00:06, Josh Berkus wrote:

> Yusuf,
> 
> > Does anyone know where I could get some documentation
> > on how the int and decimal are implemented so I could
> > prove to him that ints are better?  Can people suggest
> > good points to make in order to prove it?
> 
> RTFM:
> http://www.postgresql.org/docs/7.3/interactive/datatype.html#DATATYPE-NUMERIC

Attachments:

  signature.asc (application/pgp-signature, 186B) download

view thread (7+ messages)  latest in thread

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

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: franco@akyasociados.com.ar, josh@agliodbs.com, unicef2k@yahoo.com
  Subject: Re: Performance: BigInt vs Decimal(19,0)
  In-Reply-To: <1064847566.690.15.camel@taz>
  References: <20030928023936.66818.qmail@web40408.mail.yahoo.com> <200309272006.42462.josh@agliodbs.com> <1064847566.690.15.camel@taz>

* 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