pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Daulat <daulat.dba@gmail.com>
To: pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: ERROR: could not open file "pg_tblspc
Date: Tue, 14 Dec 2021 18:10:59 +0100
Message-ID: <5f137253b6b055b7f2ae5b02ebf67f0ea5419cde.camel@cybertec.at> (raw)
In-Reply-To: <CALfOM6+JoapGQOvB1+HjMqWHYSyn5Jy-a8LUm-xTunTK_gRiuA@mail.gmail.com>
References: <CALfOM6+JoapGQOvB1+HjMqWHYSyn5Jy-a8LUm-xTunTK_gRiuA@mail.gmail.com>

On Tue, 2021-12-14 at 22:26 +0530, Daulat wrote:
> I am getting the below error while opening some tab/menus options in the application for a specific database.
>  
> Caused by: org.postgresql.util.PSQLException: ERROR: could not open file "pg_tblspc/859888/PG_10_201707211/859890/876783": No such file or directory
> 
> I see, this directory exists till pg_tblspc/859888/PG_10_201707211/859890/
> Also I am able to select/create/drop the table on that database from psql.
> 
> Any suggestions? Is that database corrupt?
> Postgres version is 10.

Yes, your database is corrupt.

What do you get if you connect to that database and run

  SELECT oid::regclass, relkind
  FROM pg_class
  WHERE relfilenode = 876783;

If you can, run a pg_dump of that database *now*.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






view thread (7+ messages)  latest in thread

Message-ID: <5f137253b6b055b7f2ae5b02ebf67f0ea5419cde.camel@cybertec.at>
Permalink:  ../5f137253b6b055b7f2ae5b02ebf67f0ea5419cde.camel@cybertec.at/
Also on:    postgresql.org/message-id/5f137253b6b055b7f2ae5b02ebf67f0ea5419cde.camel@cybertec.at

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: laurenz.albe@cybertec.at, daulat.dba@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: ERROR: could not open file "pg_tblspc
  In-Reply-To: <5f137253b6b055b7f2ae5b02ebf67f0ea5419cde.camel@cybertec.at>

* 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