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 1i5qcW-0007kz-RM for pgsql-general@arkaria.postgresql.org; Thu, 05 Sep 2019 12:12:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i5qcV-0008HL-KF for pgsql-general@arkaria.postgresql.org; Thu, 05 Sep 2019 12:12:11 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1i5qcV-00084d-6o for pgsql-general@lists.postgresql.org; Thu, 05 Sep 2019 12:12:11 +0000 Received: from evolu-s.it ([94.23.66.144] helo=smtp.evolu-s.it) by magus.postgresql.org with smtp (Exim 4.89) (envelope-from ) id 1i5qcT-00009h-44 for pgsql-general@postgresql.org; Thu, 05 Sep 2019 12:12:10 +0000 Received: from [192.168.1.131] ([79.6.30.247]) by smtp.evolu-s.it ; Thu, 5 Sep 2019 14:12:04 +0200 To: PostgreSQL mailing lists From: Moreno Andreo Subject: Rebuild pg_toast from scratch? Message-ID: Date: Thu, 5 Sep 2019 14:12:27 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 8bit Content-Language: it List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi,     I have an issue with a Windows 10 PC with Postgres 9.1 x86. Running some SELECTs we got "ERROR: could not open file "base/48121/784576": No such file or directory" I then ran select n.nspname AS tableschema,     c.relname AS tablename from pg_class c inner join pg_namespace n on (c.relnamespace = n.oid) where c.relfilenode = 784576; and discovered that the involved table is pg_toast_49713. Now I need to recreate an empty copy of this table (data can be recovered later), how can I achieve this? Thanks in advance Moreno.-