From: | Durgamahesh Manne <maheshpostgres9(at)gmail(dot)com> |
---|---|
To: | PostgreSQL mailing lists <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: *Regarding brin_index on required column of the table |
Date: | 2018-09-19 14:32:19 |
Message-ID: | CAJCZko+MGbrcid81M19+UhWKa5hGBNwJzsObO-tBHbfGtGxxoA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi
I have complex query like for ex select distinct
sub_head."vchSubmittersCode" ,rec."vchFileName" ,
rec."vchCusipFundIDSubFundID" , rec."vchFundUnitPrice" ,
sub_head."vchValuationDate" ,rec."vchAdvisorLabel" from "table1" rec join
"table2" sub_head on rec."vchSubmittersCode"=sub_head."vchSubmittersCode"
where rec."bFetch"=false and sub_head."bFetch"=false ;
Even i have already tried with BTREE indexes & HASH indexes on required
columns .distinct query execution time was not reduced
Query taken around 7 minutes time to execute with BTREE indexes & HASH
indexes on required columns
SO please help in reducing the distinct query execution time
Regards
Durgamahesh Manne
On Wed, Sep 19, 2018 at 7:21 PM Durgamahesh Manne <maheshpostgres9(at)gmail(dot)com>
wrote:
> Hi
> Respected postgres community members
>
> 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(at)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.
>
> below is the column description:
> Column datatype collation nullable default storage
>
> dFetch boolean false
> plain
>
>
>
> so please help in creating of the BRIN index on above column of the table .
>
>
>
> Regards
>
> Durgamahesh Manne
>
From | Date | Subject | |
---|---|---|---|
Next Message | Durgamahesh Manne | 2018-09-19 14:43:09 | Re: *Regarding brin_index on required column of the table |
Previous Message | Andreas Kretschmer | 2018-09-19 14:31:45 | Re: *Regarding brin_index on required column of the table |