pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Josh Berkus <josh@agliodbs.com>
Cc: Greg Patnude <gpatnude@hotmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: User defined types -- Social Security number...
Date: Sat, 28 Feb 2004 11:18:53 -0500 (EST)
Message-ID: <200402281618.i1SGIrp28893@candle.pha.pa.us> (raw)
In-Reply-To: <200402221132.50311.josh@agliodbs.com>

Josh Berkus wrote:
> Greg,
> 
> > Anyone have a good pre-built user-defined type definition for creating /
> > maintaining / manipulating a SSN ... where valid chars are in the range
> > 000-00-0000 through 999-99-9999.
> 
> Actually, the range is more narrowly defined than that.  I'm not sure of the 
> exact rules, but you will never see a leading 0 or a -00- in an SSN.

Actually I know someone who's SSN starts as 003.

Agreed on the DOMAIN suggestion.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



view thread (14+ messages)  latest in thread

Message-ID: <200402281618.i1SGIrp28893@candle.pha.pa.us>
Permalink:  ../200402281618.i1SGIrp28893@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200402281618.i1SGIrp28893@candle.pha.pa.us

 · 

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: pgman@candle.pha.pa.us, josh@agliodbs.com, gpatnude@hotmail.com
  Subject: Re: User defined types -- Social Security number...
  In-Reply-To: <200402281618.i1SGIrp28893@candle.pha.pa.us>

* 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