Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WT6hO-0005wR-Ru for pgsql-bugs@arkaria.postgresql.org; Thu, 27 Mar 2014 09:34:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WT6hO-0006aE-8U for pgsql-bugs@arkaria.postgresql.org; Thu, 27 Mar 2014 09:34:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WT6hN-0006a7-9E for pgsql-bugs@postgresql.org; Thu, 27 Mar 2014 09:34:09 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WT6hH-0002CD-16 for pgsql-bugs@postgresql.org; Thu, 27 Mar 2014 09:34:08 +0000 MIME-Version: 1.0 Subject: BUG #9741: Mininal case for the BUG #9735: Error: "ERROR: tuple offset out of range: 0" during bitmap scan To: pgsql-bugs@postgresql.org From: maxim.boguk@gmail.com Date: Thu, 27 Mar 2014 09:33:57 +0000 Message-ID: <20140327093357.13967.98197@wrigleys.postgresql.org> X-Pg-Spam-Score: -0.3 (/) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 9741 Logged by: Maxim Boguk Email address: maxim.boguk@gmail.com PostgreSQL version: 9.3.3 Operating system: Linux (Ubuntu) Description: Hi, How situation with the BUG #9735 become even more curious. One query successfully executing on master db but doesn't work on both streaming replicas. After much digging I located problem and produced it in pretty simple way: gate_platbox=# set enable_indexscan to 0; SET (force bitmap scan) gate_platbox=# explain analyze select * from transactions where id=53265020; ERROR: tuple offset out of range: 0 This tuple had been frozen not that long time ago: gate_platbox=# select id,xmin,xmax,cmin,cmax,ctid from transactions where id=53265020; id | xmin | xmax | cmin | cmax | ctid ----------+------+------+------+------+------------- 53265020 | 2 | 0 | 1 | 1 | (2413168,1) pageinspect over used index also show nothing suspicious: select gs.i,t.* from (select generate_series(1,94961) as i) as gs, bt_page_items('transactions_pkey', i) as t where ctid::text='(2413168,1)'; i | itemoffset | ctid | itemlen | nulls | vars | data -------+------------+-------------+---------+-------+------+------------------------- 88472 | 93 | (2413168,1) | 16 | f | f | 7c c2 2c 03 00 00 00 00 Any ideas what's can be wrong with the database? -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs