Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mxBKX-0002zA-Lc for pgsql-admin@arkaria.postgresql.org; Tue, 14 Dec 2021 17:11:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mxBKW-0003M2-DT for pgsql-admin@arkaria.postgresql.org; Tue, 14 Dec 2021 17:11:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mxBKV-0003KR-UI for pgsql-admin@lists.postgresql.org; Tue, 14 Dec 2021 17:11:08 +0000 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mxBKQ-0000M8-EE for pgsql-admin@lists.postgresql.org; Tue, 14 Dec 2021 17:11:06 +0000 Received: by mail-wr1-x42b.google.com with SMTP id a18so33564347wrn.6 for ; Tue, 14 Dec 2021 09:11:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=FhCxxXWhhTOXjMpTzFLfYsrEg/0VUAO+FlAsTFgkOTk=; b=xZQsxeAf0KbIROOrnL5RP0+VU5Elyc1AcCWuI+BtOhUYpeoM2AGD10GtRyjusw0h5B DRcS8a7tHtnEovgFGJsgZCvaacvzYu42bF9crppNX0LSnCV6mIpr4z81f6689V47M7K8 zwRKofYveti1RLKzQVELwt+sItSCmkxfKR9NMdNMzlZV5lsUf6+DtUqyewFczf7ZSGLW MxPgubYRYfUo8Nk1TeBBQ9f0QHBk3h1zPVhszRKvYWfatvnpnfCNGvoQ4zZhCTxi/pHt s6aWlHPXr9sghLYRJmncowbHZJ3/SfTaAywZL88GSWzDb4BKlu+zlzUUmG7I7uOiTysS lGcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=FhCxxXWhhTOXjMpTzFLfYsrEg/0VUAO+FlAsTFgkOTk=; b=r4jCoknii4nM8bQByDKppuSf8oC2DfFqoAgQmu3dgtCL94EdeW81loR7S0qOG/tJ0C uqa2xwg/w5Ycpn6pxodxT4qOA0LQyugYeu4mOfImotDFSxuzb5LPQMEoYvZK+SUWBjel L05BASnX1wcYCpKISem4hY0Bs9WvkbQoq6q7PnseH7JUe1zJEKtPI3YLSd5PyV9GNKoj UDgorMEeVaWv4kqjTV53TTuE9aBlimR5ooFnkhiHCQL6RJl6ss+p7UqAcLmjz1B2pWc1 b+qwwoD3bu9A+iAnqoUoUKWRnPl/RfKF/r8ZAzHXtri+CnzHiwRWigWbkrfZVZaDnEZ5 iMSw== X-Gm-Message-State: AOAM531JkCjXgx0p50UTJoDdu01fT9NmK5Ne3+UyFh242Qet2AbHetBU aqpgg4aH9WHISVf8wjDFA2Bcrg== X-Google-Smtp-Source: ABdhPJxJmxjYsiPfDT9jMiZcdG1QbMLoeBtJQMjoews/6wtE+krHIsk8ywiSlNCqzLjOsvu+Vuxb5A== X-Received: by 2002:a5d:4f0e:: with SMTP id c14mr259325wru.716.1639501860774; Tue, 14 Dec 2021 09:11:00 -0800 (PST) Received: from localhost.localdomain (dynamic-ebqd4mvd0ob13yqgy-pd01.res.v6.highway.a1.net. [2001:871:5e:4f9c:dc4:9b68:294f:f182]) by smtp.gmail.com with ESMTPSA id b19sm3036852wmb.38.2021.12.14.09.11.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Dec 2021 09:11:00 -0800 (PST) Message-ID: <5f137253b6b055b7f2ae5b02ebf67f0ea5419cde.camel@cybertec.at> Subject: Re: ERROR: could not open file "pg_tblspc From: Laurenz Albe To: Daulat , pgsql-admin Date: Tue, 14 Dec 2021 18:10:59 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-2.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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