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 1i5uUH-0001AE-3p for pgsql-general@arkaria.postgresql.org; Thu, 05 Sep 2019 16:19:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i5uUF-0001Oj-G0 for pgsql-general@arkaria.postgresql.org; Thu, 05 Sep 2019 16:19:55 +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 1i5uUF-0001I6-2j for pgsql-general@lists.postgresql.org; Thu, 05 Sep 2019 16:19:55 +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 1i5uUB-0002YF-AS for pgsql-general@lists.postgresql.org; Thu, 05 Sep 2019 16:19:54 +0000 Received: from [192.168.1.131] ([79.6.30.247]) by smtp.evolu-s.it ; Thu, 5 Sep 2019 18:19:46 +0200 Subject: Re: Rebuild pg_toast from scratch? To: pgsql-general@lists.postgresql.org References: <5458.1567691631@sss.pgh.pa.us> From: Moreno Andreo Message-ID: <6b26ee91-101c-b260-3d25-5147069620b4@evolu-s.it> Date: Thu, 5 Sep 2019 18:20:09 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <5458.1567691631@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: it List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Tom and thanks for your time, Il 05/09/19 15:53, Tom Lane ha scritto: > 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 ... Absolutely :-) I'm about to migrate it to 11 > 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. truncate pg_toast_49713; ERROR: relation "pg_toast_49713" does not exist :-\ ... or do I need to truncate the "master" table (the table blobs are in)? Thanks