From: | Bruno Wolff III <bruno(at)wolff(dot)to> |
---|---|
To: | Michael Glaesemann <grzm(at)seespotcode(dot)net> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Ranges for well-ordered types |
Date: | 2006-06-10 20:15:21 |
Message-ID: | 20060610201521.GA8916@wolff.to |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Sat, Jun 10, 2006 at 23:51:58 +0900,
Michael Glaesemann <grzm(at)seespotcode(dot)net> wrote:
> Each row of this table represents the time range (from from_date to
> to_date) during which a teacher was assigned to a particular school.
> (Teachers can be assigned to more than one school at a time.) The
> check constraint guarantees that [from_date, to_date] represents a
> valid closed-closed interval (where the end points are included in
> the range). Two unique constraints are necessary to guarantee
I think you might want to reconsider your design. It works well for dates
because sets of dates are made of of isolated points and such sets are
both open and closed. If you are using time, I think it will be more convenient
to use a closed, open representation.
From | Date | Subject | |
---|---|---|---|
Next Message | Joshua D. Drake | 2006-06-10 22:03:32 | Re: TODO: Add pg_get_acldef(), pg_get_typedefault(), pg_get_attrdef(), |
Previous Message | Bruce Momjian | 2006-06-10 19:46:49 | Re: bison version |