Re: *Regarding brin_index on required column of the table - Mailing list pgsql-general

From Andreas Kretschmer
Subject Re: *Regarding brin_index on required column of the table
Date
Msg-id bb757960-8a9a-910b-c734-3e67171f8815@a-kretschmer.de
Whole thread Raw
In response to *Regarding brin_index on required column of the table  (Durgamahesh Manne <maheshpostgres9@gmail.com>)
Responses Re: *Regarding brin_index on required column of the table  (Durgamahesh Manne <maheshpostgres9@gmail.com>)
List pgsql-general

Am 19.09.2018 um 15:51 schrieb Durgamahesh Manne:
> I have created BRIN index on few columns of the table without any 
> issues. But i am unable to create BRIN index on one column of the 
> table as i got error listed below
>
>
> [local]:6263 postgres@huawei=# CREATE INDEX brin_idx on huawei using 
> brin ("dFetch");
> ERROR:  data type boolean has no default operator class for access 
> method "brin"
> HINT:  You must specify an operator class for the index or define a 
> default operator class for the data type.

honestly, a BRIN-Index on a bool-column doesn't make much sense. What do 
you want to achive? Maybe a partial index with a where-condition on that 
column makes much more sense.


Regards, Andreas

-- 
2ndQuadrant - The PostgreSQL Support Company.
www.2ndQuadrant.com



pgsql-general by date:

Previous
From: Andreas Kretschmer
Date:
Subject: Re: Which is the most stable PostgreSQL version yet present forCentOS 7?
Next
From: Durgamahesh Manne
Date:
Subject: Re: *Regarding brin_index on required column of the table