pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Franco Bruno Borghesi <franco@akyasociados.com.ar>
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 10:19:33 -0700
Message-ID: <200309291019.33153.josh@agliodbs.com> (raw)
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>

Franco,

> 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.

This is a good idea, on general principles.  Abstracted design is a good 
thing.  

Regrettably, though, a lot of commercial databases do not support DOMAIN.  
You'll need to check which databases you are thinking of porting to first.

-- 
Josh Berkus
Aglio Database Solutions
San Francisco



view thread (7+ messages)  latest in thread

Message-ID: <200309291019.33153.josh@agliodbs.com>
Permalink:  ../200309291019.33153.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200309291019.33153.josh@agliodbs.com

 · 

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: josh@agliodbs.com, franco@akyasociados.com.ar, unicef2k@yahoo.com
  Subject: Re: Performance: BigInt vs Decimal(19,0)
  In-Reply-To: <200309291019.33153.josh@agliodbs.com>
  References: <20030928023936.66818.qmail@web40408.mail.yahoo.com> <200309272006.42462.josh@agliodbs.com> <1064847566.690.15.camel@taz> <200309291019.33153.josh@agliodbs.com>

* 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