| From: | "rkmr(dot)em(at)gmail(dot)com" <rkmr(dot)em(at)gmail(dot)com> |
|---|---|
| To: | "Jorge Godoy" <jgodoy(at)gmail(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: storing repeating dates / events |
| Date: | 2008-09-06 17:34:22 |
| Message-ID: | e04d2e90809061034r7e82596x587be9cfb9f616@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Sat, Sep 6, 2008 at 10:32 AM, Jorge Godoy <jgodoy(at)gmail(dot)com> wrote:
> Em Saturday 06 September 2008 14:12:49 rkmr(dot)em(at)gmail(dot)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.
>
yes i am trying to build a alerting system where events will repeat
weekly/monthly/annually
what is the best way to store this kind of information in postgres?
thanks
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 2008-09-06 17:38:00 | Re: Can I truncate statements in the log? |
| Previous Message | rkmr.em@gmail.com | 2008-09-06 17:33:04 | Re: storing repeating dates / events |