Re: gaps/overlaps in a time table : current and previous row question

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: gaps/overlaps in a time table : current and previous row question
Дата
Msg-id 1319079408.16256.45.camel@jdavis
обсуждение исходный текст
Ответ на gaps/overlaps in a time table : current and previous row question  (thomas veymont <thomas.veymont@gmail.com>)
Список pgsql-general
On Wed, 2011-10-05 at 15:35 +0200, thomas veymont wrote:
> hello,
>
> let's say that each rows in a table contains a start time and a end
> time ("timeinterval" type),
> but the index are not ordered nor consecutive, e.g :

I think your question has already been answered, but I thought you might
be interested in:

Period data type:
http://pgxn.org/dist/temporal/

Or Exclusion Constraints, which can prevent overlapping ranges:
http://www.postgresql.org/docs/current/static/sql-createtable.html#SQL-CREATETABLE-EXCLUDE

Also, I'm currently working on a feature called Range Types, which will
hopefully be in 9.2.

Regards,
    Jeff Davis


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

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: inserting bytea using PHPs pg_escape_bytea()
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: Need Help : PostgreSQL Installation on Windows 7 64 bit