Re: Rebuild pg_toast from scratch?

From: Moreno Andreo <moreno(dot)andreo(at)evolu-s(dot)it>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Rebuild pg_toast from scratch?
Date: 2019-09-05 16:20:09
Message-ID: 6b26ee91-101c-b260-3d25-5147069620b4@evolu-s.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Tom and thanks for your time,

Il 05/09/19 15:53, Tom Lane ha scritto:
> Moreno Andreo <moreno(dot)andreo(at)evolu-s(dot)it> 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Lele Gaifax 2019-09-05 16:23:07 Re: Cannot restore dump when using IS DISTINCT FROM on a HSTORE column
Previous Message Tom Lane 2019-09-05 16:05:38 Re: postgresql: Help with hstore hextension