pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: tsuraan <tsuraan@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15467: The database subdirectory "pg_tblspc/1932420460/PG_10_201707211/16400" is missing.
Date: Thu, 01 Nov 2018 15:37:12 +0000
Message-ID: <874ld06dx1.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <CALKcMw+45dsCdNdmozyNYaefpC6cv2r7D=fFkZAjOSiwwsqRNQ@mail.gmail.com>
References: <15467-0a44b33ef5460f27@postgresql.org>
	<87a7mv7fbi.fsf@news-spur.riddles.org.uk>
	<CALKcMwKE4ssO_14vrHW3HvsJE79FNV=o9Ln_t2AHG-mUyWSeZg@mail.gmail.com>
	<875zxj6my1.fsf@news-spur.riddles.org.uk>
	<CALKcMwLFvyAC6C6TAai9OQf3npNu1HAw9SPjs=6YYZHyT54FHA@mail.gmail.com>
	<871s866rvi.fsf@news-spur.riddles.org.uk>
	<CALKcMw+45dsCdNdmozyNYaefpC6cv2r7D=fFkZAjOSiwwsqRNQ@mail.gmail.com>

>>>>> "tsuraan" == tsuraan  <tsuraan@gmail.com> 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)




view thread (8+ messages)

Message-ID: <874ld06dx1.fsf@news-spur.riddles.org.uk>
Permalink:  ../874ld06dx1.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/874ld06dx1.fsf@news-spur.riddles.org.uk

 · 

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: andrew@tao11.riddles.org.uk, tsuraan@gmail.com
  Subject: Re: BUG #15467: The database subdirectory "pg_tblspc/1932420460/PG_10_201707211/16400" is missing.
  In-Reply-To: <874ld06dx1.fsf@news-spur.riddles.org.uk>
  References: <15467-0a44b33ef5460f27@postgresql.org> <87a7mv7fbi.fsf@news-spur.riddles.org.uk> <CALKcMwKE4ssO_14vrHW3HvsJE79FNV=o9Ln_t2AHG-mUyWSeZg@mail.gmail.com> <875zxj6my1.fsf@news-spur.riddles.org.uk> <CALKcMwLFvyAC6C6TAai9OQf3npNu1HAw9SPjs=6YYZHyT54FHA@mail.gmail.com> <871s866rvi.fsf@news-spur.riddles.org.uk> <CALKcMw+45dsCdNdmozyNYaefpC6cv2r7D=fFkZAjOSiwwsqRNQ@mail.gmail.com> <874ld06dx1.fsf@news-spur.riddles.org.uk>

* 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