From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Jeremy Finzel <finzelj@gmail.com>
Cc: Postgres General <pgsql-general@postgresql.org>
Subject: Re: Aggregate not using BRIN index on timestamp
Date: Mon, 5 Aug 2019 13:27:17 -0400
Message-ID: <20190805172717.GA10185@alvherre.pgsql> (raw)
In-Reply-To: <2667.1565020427@sss.pgh.pa.us>
On 2019-Aug-05, Tom Lane wrote:
> FWIW, I suspect the hard part would be dealing with cases where the
> extremal ranges (according to the index) contain no live tuples
> (according to the query's snapshot). The btree case handles the
> invisible-tuples problem by continuing a scan started at the index
> endpoint until it finds a visible tuple --- which, in the worst case,
> can take a long time. It's not obvious to me what you'd do with
> BRIN.
Hmm, yeah, that's a tough problem -- hadn't thought about that.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: alvherre@2ndquadrant.com, tgl@sss.pgh.pa.us, finzelj@gmail.com
Subject: Re: Aggregate not using BRIN index on timestamp
In-Reply-To: <20190805172717.GA10185@alvherre.pgsql>
References: <2667.1565020427@sss.pgh.pa.us> <20190805172717.GA10185@alvherre.pgsql>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox