Re: IoT/sensor data and B-Tree page splits - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: IoT/sensor data and B-Tree page splits
Date
Msg-id CAH2-Wzn0f=ETH=e4GEeZGyme5RjJQunZVfV9Z8nqeXib6U3Awg@mail.gmail.com
Whole thread Raw
In response to Re: IoT/sensor data and B-Tree page splits  (Arcadiy Ivanov <arcadiy@gmail.com>)
List pgsql-hackers
On Mon, Aug 26, 2019 at 4:59 PM Arcadiy Ivanov <arcadiy@gmail.com> wrote:
> But apart from TPC-E and having to perform to it, is there any practical
> real world usefulness in trying to have a B-tree index on TS-based data
> just to have a PK on it, as opposed to having a BRIN on a TS field and
> calling it a day?

The index in question isn't an index on a timestamp. Its leading
column is an integer that is almost monotonically increasing, but not
quite.

If a BRIN index works for you, then that's probably what you should
use. I don't think that that's relevant, though. BRIN indexes have
clear disadvantages, including the fact that you have to know that
your data is amenable to BRIN indexing in order to use a BRIN index.

-- 
Peter Geoghegan



pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: old_snapshot_threshold vs indexes
Next
From: Ashwin Agrawal
Date:
Subject: Re: Zedstore - compressed in-core columnar storage