Re: weird duplicate data problem - Mailing list pgsql-sql

From Jan Wieck
Subject Re: weird duplicate data problem
Date
Msg-id 200112142054.fBEKs9e03436@saturn.jw.home
Whole thread Raw
In response to Re: weird duplicate data problem  ("Josh Berkus" <josh@agliodbs.com>)
List pgsql-sql
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
withthe   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



pgsql-sql by date:

Previous
From: "Josh Berkus"
Date:
Subject: Re: weird duplicate data problem
Next
From: Oleg Lebedev
Date:
Subject: won't drop the view