Split daterange into sub periods

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Split daterange into sub periods
Дата
Msg-id CAKFQuwan9iYaMOb3FHQwYok=BUdTbPCSKKnbue1rYrUAULiCog@mail.gmail.com
обсуждение исходный текст
Ответ на Split daterange into sub periods  (hmidi slim <hmidi.slim2@gmail.com>)
Список pgsql-general
On Thursday, July 5, 2018, hmidi slim <hmidi.slim2@gmail.com> wrote:
I got this error:
ERROR: result of range difference would not be contiguous

Is there any operators to make the split of daterang
To refine what Adrian said, operators cannot return a setof result so this is basically impossible.  The interface for such a behavior would have to be a function.  You one someone already wrote elsewhere or you can write your own.  There isn't one in core that I see.

David J.

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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Split daterange into sub periods
Следующее
От: hmidi slim
Дата:
Сообщение: Re: Split daterange into sub periods