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 1gHsoJ-0000fn-65 for pgsql-bugs@arkaria.postgresql.org; Wed, 31 Oct 2018 15:53:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gHsoG-0008GR-MF for pgsql-bugs@arkaria.postgresql.org; Wed, 31 Oct 2018 15:53:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHsoG-0008GK-Fv for pgsql-bugs@lists.postgresql.org; Wed, 31 Oct 2018 15:53:32 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHsoE-0004TU-EQ for pgsql-bugs@lists.postgresql.org; Wed, 31 Oct 2018 15:53:32 +0000 Received: from [192.168.127.1] (port=22858 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 1gHsoB-000FEi-Vf; Wed, 31 Oct 2018 15:53:27 +0000 Received: from [127.0.0.1] (port=28660 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1gHsoA-0004gP-Pd; Wed, 31 Oct 2018 15:53:26 +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 09:30:26 -0500") Message-ID: <871s866rvi.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> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Wed, 31 Oct 2018 15:53:25 +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> Starting up postgres again and querying pg_database still tsuraan> gives the same cache lookup error. Do you still get the error from just select oid from pg_database; or select oid,dattablespace from pg_database; ? tsuraan> Another person noticed that the missing directory tsuraan> (pg_tblspc/1932420460/PG_10_201707211/16400) I just noticed: 1932420460 = 0x732E656C = "le.s" which is suspiciously textual. Any chance you can do this query: select pg_relation_filepath('pg_database'::regclass); and then do hexdump -C on that file? -- Andrew (irc:RhodiumToad)