Re: Exclude constraint on ranges : commutative containment : allowonly complete containment
От
Adrian Klaver
Тема
Re: Exclude constraint on ranges : commutative containment : allowonly complete containment
Дата
Msg-id
6a61a14d-21ba-4804-9ab4-329c9740af7c@aklaver.com
Ответ на
Re: Exclude constraint on ranges : commutative containment : allowonly complete containment (Achilleas Mantzios)
Список
Дерево обсуждения
Exclude constraint on ranges : commutative containment : allow onlycomplete containment Achilleas Mantzios <achill@matrix.gatewaynet.com>
Re: Exclude constraint on ranges : commutative containment : allowonly complete containment Adrian Klaver <adrian.klaver@aklaver.com>
Re: Exclude constraint on ranges : commutative containment : allowonly complete containment Michael Lewis <mlewis@entrata.com>
Re: Exclude constraint on ranges : commutative containment : allowonly complete containment Achilleas Mantzios <achill@matrix.gatewaynet.com>
Re: Exclude constraint on ranges : commutative containment : allowonly complete containment Achilleas Mantzios <achill@matrix.gatewaynet.com>
Re: Exclude constraint on ranges : commutative containment : allowonly complete containment Adrian Klaver <adrian.klaver@aklaver.com>
Re: Exclude constraint on ranges : commutative containment : allowonly complete containment Achilleas Mantzios <achill@matrix.gatewaynet.com>
Re: Exclude constraint on ranges : commutative containment : allowonly complete containment Adrian Klaver <adrian.klaver@aklaver.com>
On 1/30/20 9:03 AM, Achilleas Mantzios wrote: >> >> Um, that makes my head hurt:) Questions: >> >> 1) Are the basic complete budgets and the sub-budgets and super >> budgets existing in the same table? >> >> 2) Depending on answer to 1, to prevent overlap could you not use a >> form of the example here?: >> >> https://www.postgresql.org/docs/12/rangetypes.html#RANGETYPES-CONSTRAINT >> >> CREATE TABLE reservation ( >> during tsrange, >> EXCLUDE USING GIST (during WITH &&) >> ); >> > same table. > overlap is allowed but only when it is complete containment, which is > the whole point of this thread. > I finally got it. Unfortunately that does not mean I have solution. -- Adrian Klaver adrian.klaver@aklaver.com
В списке pgsql-general по дате отправления