Re: Storing birthday data - Mailing list pgsql-general

From Björn Lundin
Subject Re: Storing birthday data
Date
Msg-id chuuma$ml9$1@news.hub.org
Whole thread Raw
In response to Storing birthday data  (David Garamond <lists@zara.6.isreserved.com>)
List pgsql-general
David Garamond wrote:

> What would be the more proper way of storing birthday data? It will be
> used to send out birthday messages for customers ("Happy 30th birthday,
> Sam!"). But the date of birth is not necessarily known (in which case,
> we will only send out "Happy birthday, Sam!").
>
> I prefer using the builtin date type instead of three smallints. But I
> don't like having to arbitrarily set, say, year 1000 AD or 1 BC to
> represent "unknown year".
>
> Any thoughts?
>
How about NULL?
/Björn

pgsql-general by date:

Previous
From: Oscar Tuscon
Date:
Subject: Re: pg_dump/pg_dumpall do not correctly dump search_path
Next
From: "Dr. Aharon Friedman"
Date:
Subject: Synchronizing Databases