Re: Default operator class for data type boolean for access method gist is missing - Mailing list pgsql-general

From Andreas Joseph Krogh
Subject Re: Default operator class for data type boolean for access method gist is missing
Date
Msg-id OfficeNetEmail.2ae.3a1104baa1e5c081.144ee29230f@prod2
Whole thread Raw
In response to Re: Default operator class for data type boolean for access method gist is missing  (Emre Hasegeli <emre@hasegeli.com>)
List pgsql-general
På søndag 23. mars 2014 kl. 08:13:43, skrev Emre Hasegeli <emre@hasegeli.com>:
2014-03-23, Andreas Joseph Krogh <andreak@officenet.no>:
I'm trying to define the following exclusion-constraint
 
alter table my_table add EXCLUDE USING gist (is_default WITH =, daterange(valid_from, valid_to, '[)') WITH &&) WHERE (is_default = true);

 
is_default should not be in the index as only one
value filtered on the WHERE clause.
 
 
Thanks.
If I had more filters in WHERE, then what?
 
--
Andreas Joseph Krogh <andreak@officenet.no>      mob: +47 909 56 963
Senior Software Developer / CTO - OfficeNet AS - http://www.officenet.no
Public key: http://home.officenet.no/~andreak/public_key.asc
 

pgsql-general by date:

Previous
From: Andreas Kretschmer
Date:
Subject: Re: Default operator class for data type boolean for access method gist is missing
Next
From: Andreas Joseph Krogh
Date:
Subject: Re: Default operator class for data type boolean for access method gist is missing