Split daterange into sub periods - Mailing list pgsql-general

From David G. Johnston
Subject Split daterange into sub periods
Date
Msg-id CAKFQuwan9iYaMOb3FHQwYok=BUdTbPCSKKnbue1rYrUAULiCog@mail.gmail.com
Whole thread Raw
In response to Split daterange into sub periods  (hmidi slim <hmidi.slim2@gmail.com>)
List 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 by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Split daterange into sub periods
Next
From: hmidi slim
Date:
Subject: Re: Split daterange into sub periods