Split daterange into sub periods

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: hmidi slim <hmidi(dot)slim2(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Split daterange into sub periods
Date: 2018-07-05 14:13:18
Message-ID: CAKFQuwan9iYaMOb3FHQwYok=BUdTbPCSKKnbue1rYrUAULiCog@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thursday, July 5, 2018, hmidi slim <hmidi(dot)slim2(at)gmail(dot)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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message hmidi slim 2018-07-05 14:16:08 Re: Split daterange into sub periods
Previous Message Adrian Klaver 2018-07-05 14:03:31 Re: Split daterange into sub periods