Re: User defined types -- Social Security number...

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: Greg Patnude <gpatnude(at)hotmail(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: User defined types -- Social Security number...
Date: 2004-02-28 16:18:53
Message-ID: 200402281618.i1SGIrp28893@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-sql

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(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Sabino Mullane 2004-02-28 17:05:16 Re: [HACKERS] Collaboration Tool Proposal
Previous Message Tom Lane 2004-02-28 16:05:36 Re: cvs: mislinked plpgsql.so ?

Browse pgsql-sql by date

  From Date Subject
Next Message Bruce Momjian 2004-02-29 02:44:58 Re: Enterprice support in PostgreSQL
Previous Message JJ Gabor 2004-02-27 22:18:44 VIEW on lookup table