Partial or incomplete dates

Поиск
Список
Период
Сортировка
От Leif B. Kristensen
Тема Partial or incomplete dates
Дата
Msg-id 200503121130.03961.leif@solumslekt.org
обсуждение исходный текст
Ответы Re: Partial or incomplete dates  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-general
Hello all,
this is my first posting to this list. I have been using MySQL for a few
years with a web application for displaying my genealogy database, a
FoxPro database from The Master Genealogist from which I'm dumping a
subset with a Perl script and the DBD::XBase module. I'm now in the
process of developing my own genealogy program, and I have been
absolutely thrilled by the prospect of using PostgreSQL for this
venture.

My first stumbling block is this: How do I store incomplete or partial
dates in PostgreSQL? I ran a Google search on 'postgresql "partial
dates"' and came up with this thread as the only significant match:
<url:http://archives.postgresql.org/pgsql-general/2003-01/msg00888.php>

In MySQL, the checking on dates is very relaxed, so it's totally legal
to enter a date as '1731-00-00', and let your own program logic decide
that this means just the year 1731. Do I have to make my own data type
to store and manipulate partial dates, or has somebody already done it?
Or is there a way to use relaxed date checking in PostgreSQL?
--
Leif Biberg Kristensen
http://solumslekt.org/

В списке pgsql-general по дате отправления:

Предыдущее
От: Ragnar Hafstað
Дата:
Сообщение: Re: Checking for schedule conflicts
Следующее
От: "ILove TheSpam"
Дата:
Сообщение: Re: Unique Indexes