Re: storing repeating dates / events

Поиск
Список
Период
Сортировка
От Jorge Godoy
Тема Re: storing repeating dates / events
Дата
Msg-id 200809061432.47270.jgodoy@gmail.com
обсуждение исходный текст
Ответ на storing repeating dates / events  ("rkmr.em@gmail.com" <rkmr.em@gmail.com>)
Ответы Re: storing repeating dates / events
Список pgsql-general
Em Saturday 06 September 2008 14:12:49 rkmr.em@gmail.com escreveu:
> Hi
> I want to store dates / events for example birthdays (or may 5th) that
> repeats every year..
> what is the best way to do in postgres?
> if i use timestamp it is going to be use the current year.. how do i do
> this?

Along with the timestamp store a boolean that indicates if the event should
consider the year or not.

But you might surely design it better, specially for things that repeat on
intervals other than yearly.

--
Jorge Godoy      <jgodoy@gmail.com>



Вложения

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

Предыдущее
От: brian
Дата:
Сообщение: Re: storing repeating dates / events
Следующее
От: "rkmr.em@gmail.com"
Дата:
Сообщение: Re: storing repeating dates / events