Re: [GENERAL] BRIN Usage

2016-02-21 Thread Peter J. Holzer
On 2016-02-18 13:37:37 -0500, Tom Smith wrote: > it is for reducing index size as the table become huge.  > sorry for confusion, by timestamp, I meant a time series number, not the sql > timestamp type. > I need the unique on the column to ensure no duplicate,   but the btree index > is getting > h

Re: [GENERAL] BRIN Usage

2016-02-18 Thread Tom Smith
it is for reducing index size as the table become huge. sorry for confusion, by timestamp, I meant a time series number, not the sql timestamp type. I need the unique on the column to ensure no duplicate, but the btree index is getting huge so BRIN seems to solve problem but can not ensure unique

Re: [GENERAL] BRIN Usage

2016-02-17 Thread David Rowley
On 18/02/2016 9:34 am, "Tom Smith" wrote: > > Hi: > > I feel it is a stupid question. > > Can BRIN index enforce uniqueness? > My issue is > the column I'd like to apply BRIN index also needs to be unique > (think of timestamp as primary key). Only btree supports unique. Is there a special reas

[GENERAL] BRIN Usage

2016-02-17 Thread Tom Smith
Hi: I feel it is a stupid question. Can BRIN index enforce uniqueness? My issue is the column I'd like to apply BRIN index also needs to be unique (think of timestamp as primary key). Thanks