From: Moreno Andreo <moreno.andreo@evolu-s.it>
To: PostgreSQL mailing lists <pgsql-general@postgresql.org>
Subject: Rebuild pg_toast from scratch?
Date: Thu, 5 Sep 2019 14:12:27 +0200
Message-ID: <c0032b94-b519-187c-cb11-3a535df20b6b@evolu-s.it> (raw)
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.-
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: moreno.andreo@evolu-s.it
Subject: Re: Rebuild pg_toast from scratch?
In-Reply-To: <c0032b94-b519-187c-cb11-3a535df20b6b@evolu-s.it>
References: <c0032b94-b519-187c-cb11-3a535df20b6b@evolu-s.it>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox