Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wkvjm-0005tO-GZ for pgsql-bugs@arkaria.postgresql.org; Thu, 15 May 2014 13:30:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wkvjl-0003a8-G5 for pgsql-bugs@arkaria.postgresql.org; Thu, 15 May 2014 13:30:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WkvQE-0006p5-Gq for pgsql-bugs@postgresql.org; Thu, 15 May 2014 13:10:06 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WkvQA-0006nE-LQ for pgsql-bugs@postgresql.org; Thu, 15 May 2014 13:10:06 +0000 MIME-Version: 1.0 Subject: BUG #10329: Could not read block 0 in file "base/56100265/57047884": read only 0 of 8192 bytes To: pgsql-bugs@postgresql.org From: olivier.macchioni@wingo.ch Date: Thu, 15 May 2014 13:09:45 +0000 Message-ID: <20140515130945.4226.27569@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) 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: 10329 Logged by: Olivier Macchioni Email address: olivier.macchioni@wingo.ch PostgreSQL version: 9.1.13 Operating system: Debian 7.4 and 6.0.9 Description: Hello all, - Streaming Replication setup, 2 DB servers - 9.1.13 on both sides (from apt.postgresql.org) - Debian 6.0.9 on master server, 7.4 on standby server When doing the following query on the standby server: select * from ir_translation where src = 'a'; We have the following error in the logfiles: ERROR: could not read block 0 in file "base/56100265/57047884": read only 0 of 8192 bytes When checking the file usage, the following is reported: postgres@db-stdby:~/9.1/main/base/56100265$ /usr/lib/postgresql/9.1/bin/oid2name -d xx -f 57047884 From database "xx": Filenode Table Name --------------------------------------- 57047884 ir_translation_src_hash_idx ls -la shows that the file has a size of 0. What's interesting as well is that this file has a last modification date of April, 29th - when the DB has been created on the Master server much more recently, by doing a "drop xx; rename xx_new xx;" root@db-stdby:/var/lib/postgresql/9.1/main/base/56100265# stat 57047884 File: `57047884' Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: 801h/2049d Inode: 1051439 Links: 1 Access: (0600/-rw-------) Uid: ( 106/postgres) Gid: ( 111/postgres) Access: 2014-05-15 11:15:50.218038536 +0200 Modify: 2014-04-29 16:20:36.645605377 +0200 Change: 2014-04-29 16:20:36.645605377 +0200 Birth: - root@db:/var/lib/postgresql/9.1/main/base/56100265# stat 57047884 File: `57047884' Size: 2129920 Blocks: 4168 IO Block: 4096 regular file Device: 801h/2049d Inode: 315480 Links: 1 Access: (0600/-rw-------) Uid: ( 104/postgres) Gid: ( 107/postgres) Access: 2014-05-15 11:24:29.000000000 +0200 Modify: 2014-05-03 23:08:11.000000000 +0200 Change: 2014-05-03 23:08:11.000000000 +0200 The master server doesn't show this behavior. The symptoms are similar to some previous (but much older) posts on this list, for instance http://www.postgresql.org/message-id/E1TEjPD-0002Yq-7L@wrigleys.postgresql.org So I think this bug is not fixed yet... -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs