Received: from smtp018.mail.yahoo.com (smtp018.mail.yahoo.com [216.136.174.115]) by postgresql.org (8.11.3/8.11.4) with SMTP id fBEL6Bm42599 for ; Fri, 14 Dec 2001 16:06:12 -0500 (EST) (envelope-from janwieck@yahoo.com) Received: from psc.progress.com (HELO saturn.jw.home) (192.233.92.200) by smtp.mail.vip.sc5.yahoo.com with SMTP; 14 Dec 2001 21:06:11 -0000 Received: (from wieck@localhost) by saturn.jw.home (8.11.2/8.11.2) id fBEKs9e03436; Fri, 14 Dec 2001 15:54:09 -0500 From: Jan Wieck Message-Id: <200112142054.fBEKs9e03436@saturn.jw.home> Subject: Re: weird duplicate data problem In-Reply-To: from Josh Berkus at "Dec 14, 2001 11:22:30 am" To: Josh Berkus Date: Fri, 14 Dec 2001 15:54:09 -0500 (EST) CC: Jeff Self , Carolyn Lu Wong , pgsql-sql@postgresql.org X-Mailer: ELM [version 2.4ME+ PL68 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archive-Number: 200112/151 X-Sequence-Number: 5974 Josh Berkus wrote: > Carolyn, Jeff, > > I have to disagree with this, Jeff. A six-digit integer takes up only > 20% of the storage space of a 6-character string. As such, it will be > faster to index and faster to retrieve, and faster to perform JOINs and > sorts. So if Carolyn will never want to store anything but numbers in > the field, integer is ideal. That is all true, and still you should not restrict the possible content to something that got nothing to do with the nature of the data. Things like account numbers, zip codes, phone numbers, whatnot ARE CHARACTER SEQUENCES - period. How sure can Carolyn be that there will never be an account number where leading zeroes are significant? That true already for zip codes (and by the way, european zipcodes are alphanumeric). And what is the cosmic significance of my phone number plus your creditcard number divided by Carolyn's shoesize? :-) Jan -- #======================================================================# # It's easier to get forgiveness for being wrong than for being right. # # Let's break this rule - forgive me. # #================================================== JanWieck@Yahoo.com # _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com