Postgres choosing BTREE instead of BRIN index
问题 I'm running Postgres 9.5 and am playing around with BRIN indexes. I have a fact table with about 150 million rows and I'm trying to get PG to use a BRIN index. My query is: select sum(transaction_amt), sum (total_amt) from fact_transaction where transaction_date_key between 20170101 and 20170201 I created both a BTREE index and a BRIN index (default pages_per_range value of 128) on column transaction_date_key (the above query is referring to January to February 2017). I would have thought