Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gIF2D-0000Ci-1K for pgsql-bugs@arkaria.postgresql.org; Thu, 01 Nov 2018 15:37:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gIF29-0007Vq-F8 for pgsql-bugs@arkaria.postgresql.org; Thu, 01 Nov 2018 15:37:21 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gIF29-0007Vi-5R for pgsql-bugs@lists.postgresql.org; Thu, 01 Nov 2018 15:37:21 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gIF25-0001AN-V9 for pgsql-bugs@lists.postgresql.org; Thu, 01 Nov 2018 15:37:20 +0000 Received: from [192.168.127.1] (port=22751 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1gIF22-000H9i-KA; Thu, 01 Nov 2018 15:37:14 +0000 Received: from [127.0.0.1] (port=55793 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1gIF21-000B4z-Lt; Thu, 01 Nov 2018 15:37:13 +0000 From: Andrew Gierth To: tsuraan Cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15467: The database subdirectory "pg_tblspc/1932420460/PG_10_201707211/16400" is missing. In-Reply-To: (tsuraan@gmail.com's message of "Wed, 31 Oct 2018 20:26:40 -0500") Message-ID: <874ld06dx1.fsf@news-spur.riddles.org.uk> References: <15467-0a44b33ef5460f27@postgresql.org> <87a7mv7fbi.fsf@news-spur.riddles.org.uk> <875zxj6my1.fsf@news-spur.riddles.org.uk> <871s866rvi.fsf@news-spur.riddles.org.uk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Thu, 01 Nov 2018 15:37:12 +0000 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "tsuraan" == tsuraan writes: tsuraan> Quite a bit there, but the region around there does look weird: tsuraan> 00001d40 00 00 00 00 00 00 00 00 00 01 00 00 ff ff ff ff |................| tsuraan> 00001d50 00 00 00 00 f4 06 00 00 01 00 00 00 6c 65 2e 73 |............le.s| tsuraan> 00001d60 6f 00 70 79 63 00 65 2e 00 00 00 00 00 00 00 00 |o.pyc.e.........| tsuraan> 00001d70 00 ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| tsuraan> 00001d80 00 00 00 00 00 00 00 00 3a 00 00 ff 00 00 00 00 |........:.......| tsuraan> 00001d90 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 00 00 |................| tsuraan> 00001da0 28 f8 12 00 00 00 00 00 00 00 00 00 00 00 00 00 |(...............| tsuraan> 00001db0 0d 00 0d 80 0a 29 20 00 00 00 00 00 03 30 00 00 |.....) ......0..| tsuraan> 00001dc0 74 65 6d 70 6c 61 74 65 30 00 00 00 00 00 00 00 |template0.......| tsuraan> 00001dd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| tsuraan> The le.s that you noticed actually looks like le.so, and then tsuraan> there's a pyc and an "e." after it (null-separated). That's quite odd. But it looks like the data here is corrupt from offset 1d5c for the next 64 bytes (+/- 4 bytes, maybe, but much more likely to be exactly 64). That's not something I recall seeing before, but some kind of hardware corruption issue couldn't be ruled out. I don't suppose you have data checksums enabled? The "cache lookup failed" error is caused by the fact that the column _after_ dattablespace, i.e. datacl, is also corrupt (the database must have had a non-null ACL with an additional grant to exactly one role going by the layout of records). tsuraan> Also weird is that there are six different sections tsuraan> describing(?) template1: That's not really weird - the pg_database rows can get updated, e.g. from grant/revoke, and autovacuum usually won't kick in for a long time because the table is so tiny. So some number of old dead row versions is expected - likewise for your own db. -- Andrew (irc:RhodiumToad)