Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i5sE4-0003tR-Cb for pgsql-general@arkaria.postgresql.org; Thu, 05 Sep 2019 13:55:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i5sD5-0003ZW-1y for pgsql-general@arkaria.postgresql.org; Thu, 05 Sep 2019 13:54:03 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i5sD4-0003ZP-KF for pgsql-general@lists.postgresql.org; Thu, 05 Sep 2019 13:54:02 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1i5sD2-0006l0-AQ for pgsql-general@postgresql.org; Thu, 05 Sep 2019 13:54:01 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x85Drpg5005460; Thu, 5 Sep 2019 09:53:51 -0400 From: Tom Lane To: Moreno Andreo cc: PostgreSQL mailing lists Subject: Re: Rebuild pg_toast from scratch? In-reply-to: References: Comments: In-reply-to Moreno Andreo message dated "Thu, 05 Sep 2019 14:12:27 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <5457.1567691631.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Thu, 05 Sep 2019 09:53:51 -0400 Message-ID: <5458.1567691631@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Moreno Andreo writes: >     I have an issue with a Windows 10 PC with Postgres 9.1 x86. You realize 9.1 is long out of support ... > Running some SELECTs we got "ERROR: could not open file > "base/48121/784576": No such file or directory" Ugh :-( > Now I need to recreate an empty copy of this table (data can be > recovered later), how can I achieve this? TRUNCATE ought to be enough. regards, tom lane