pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: James A. Robinson <jim.robinson@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: Working around, or with, bitmap heap scan?
Date: Fri, 02 Nov 2018 12:00:05 +0100
Message-ID: <44fa6ec751eb8473583edfbf56d51fb7c229bab9.camel@cybertec.at> (raw)
In-Reply-To: <CAPd04b7yzZH64JKUt8w51kFh+Ze2rxzSc50ghhqKAGR=vsgnXA@mail.gmail.com>
References: <CAPd04b7yzZH64JKUt8w51kFh+Ze2rxzSc50ghhqKAGR=vsgnXA@mail.gmail.com>

James A. Robinson wrote:
> I'm newly exposed to a Postgres 9.4 database system, and am
> trying to understand how I might optimize a query that is taking
> a long time to return.
> 
> What I'm observing is an uncached query that takes much much
> longer to complete, sometimes minutes longer, when
> enable_bitmapscan is true.  Even after the query result is
> cached, it seems to consistently be 300 ms slower when
> enable_bitmapscan is true (so taking 900 ms to return instead of
> 600 ms).

It would be helpful to have EXPLAIN (ANALYZE, BUFFERS) output for
both queries.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com





view thread (7+ messages)  latest in thread

Message-ID: <44fa6ec751eb8473583edfbf56d51fb7c229bab9.camel@cybertec.at>
Permalink:  ../44fa6ec751eb8473583edfbf56d51fb7c229bab9.camel@cybertec.at/
Also on:    postgresql.org/message-id/44fa6ec751eb8473583edfbf56d51fb7c229bab9.camel@cybertec.at

 · 

reply

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: laurenz.albe@cybertec.at, jim.robinson@gmail.com
  Subject: Re: Working around, or with, bitmap heap scan?
  In-Reply-To: <44fa6ec751eb8473583edfbf56d51fb7c229bab9.camel@cybertec.at>
  References: <CAPd04b7yzZH64JKUt8w51kFh+Ze2rxzSc50ghhqKAGR=vsgnXA@mail.gmail.com> <44fa6ec751eb8473583edfbf56d51fb7c229bab9.camel@cybertec.at>

* 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