pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: maxim.boguk@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #9735: Error: "ERROR: tuple offset out of range: 0" during bitmap scan
Date: Wed, 26 Mar 2014 12:11:11 +0000
Message-ID: <20140326121111.1150.64470@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      9735
Logged by:          Maxim Boguk
Email address:      maxim.boguk@gmail.com
PostgreSQL version: 9.3.3
Operating system:   Linux
Description:        

Hi,

An application start getting curious error during simple query:

select * from transactions where  (date(provider_tx_datetime) =
'2014-03-13'::date);
ERROR:  tuple offset out of range: 0

Plan:
 Bitmap Heap Scan on transactions  (cost=614.04..32037.39 rows=167485
width=608)
   Recheck Cond: (date(provider_tx_datetime) = '2014-03-13'::date)
   ->  Bitmap Index Scan on transactions_tx_prv_tx_dt_date_idx21 
(cost=0.00..572.17 rows=167485 width=0)
         Index Cond: (date(provider_tx_datetime) = '2014-03-13'::date)

What doesn't helped:
set vacuum_freeze_table_age to 0;
vacuum freeze verbose transactions;
and rebuilding the transactions_tx_prv_tx_dt_date_idx21 index.

What helped:
set enable_bitmapscan to 0;
and executing the same query again
with plan:
 Index Scan using transactions_tx_prv_tx_dt_date_idx21 on transactions 
(cost=0.56..33915.12 rows=167485 width=608) (actual time=0.047..1233.998
rows=195824 loops=1)
   Index Cond: (date(provider_tx_datetime) = '2014-03-13'::date)
 Total runtime: 1247.688 ms
afterward.

This situation repeated more few times over the last days (with diferen
dateranges).

Any suggestions where and what for I should look next?

It seems somehow related with visibility map and bitmap scan interaction
(only my theory though).

Kind Regards,
Maksym


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



Message-ID: <20140326121111.1150.64470@wrigleys.postgresql.org>
Permalink:  ../20140326121111.1150.64470@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20140326121111.1150.64470@wrigleys.postgresql.org

 · 

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-bugs@postgresql.org
  Cc: maxim.boguk@gmail.com
  Subject: Re: BUG #9735: Error: "ERROR: tuple offset out of range: 0" during bitmap scan
  In-Reply-To: <20140326121111.1150.64470@wrigleys.postgresql.org>
  References: <20140326121111.1150.64470@wrigleys.postgresql.org>

* 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