X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 92E2BD1B8B7 for ; Mon, 29 Sep 2003 17:31:47 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 33145-06 for ; Mon, 29 Sep 2003 14:31:19 -0300 (ADT) Received: from davinci.ethosmedia.com (unknown [209.128.84.228]) by svr1.postgresql.org (Postfix) with ESMTP id 55954D1B576 for ; Mon, 29 Sep 2003 14:30:43 -0300 (ADT) Received: from [63.195.55.98] (HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 3694916; Mon, 29 Sep 2003 10:20:48 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Organization: Aglio Database Solutions To: Franco Bruno Borghesi Subject: Re: Performance: BigInt vs Decimal(19,0) Date: Mon, 29 Sep 2003 10:19:33 -0700 User-Agent: KMail/1.4.3 Cc: "Yusuf W." , "pgsql-performance@postgresql.org" References: <20030928023936.66818.qmail@web40408.mail.yahoo.com> <200309272006.42462.josh@agliodbs.com> <1064847566.690.15.camel@taz> In-Reply-To: <1064847566.690.15.camel@taz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200309291019.33153.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/369 X-Sequence-Number: 3735 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