pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jan Wieck <janwieck@yahoo.com>
To: Josh Berkus <josh@agliodbs.com>
Cc: Jeff Self <jocknerd@home.com>
Cc: Carolyn Lu Wong <carolyn@greatpacific.com.au>
Cc: pgsql-sql@postgresql.org
Subject: Re: weird duplicate data problem
Date: Fri, 14 Dec 2001 15:54:09 -0500 (EST)
Message-ID: <200112142054.fBEKs9e03436@saturn.jw.home> (raw)
In-Reply-To: <web-529011@davinci.ethosmedia.com>

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




view thread (5+ messages)  latest in thread

Message-ID: <200112142054.fBEKs9e03436@saturn.jw.home>
Permalink:  ../200112142054.fBEKs9e03436@saturn.jw.home/
Also on:    postgresql.org/message-id/200112142054.fBEKs9e03436@saturn.jw.home

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: janwieck@yahoo.com, josh@agliodbs.com, jocknerd@home.com, carolyn@greatpacific.com.au
  Subject: Re: weird duplicate data problem
  In-Reply-To: <200112142054.fBEKs9e03436@saturn.jw.home>

* 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