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 1mxSvh-0007FI-F7 for pgsql-admin@arkaria.postgresql.org; Wed, 15 Dec 2021 11:58:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mxSvg-0000Gm-BJ for pgsql-admin@arkaria.postgresql.org; Wed, 15 Dec 2021 11:58:40 +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 1mxSvg-0000Gd-0n for pgsql-admin@lists.postgresql.org; Wed, 15 Dec 2021 11:58:40 +0000 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mxSvc-0000n3-Am for pgsql-admin@lists.postgresql.org; Wed, 15 Dec 2021 11:58:39 +0000 Received: by mail-wr1-x42f.google.com with SMTP id t18so37711213wrg.11 for ; Wed, 15 Dec 2021 03:58:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8DX5bhK9n4fu1fjX8X/qRKA4qZnHY4LMDF3fL6HL3cU=; b=c7GO7wU7wjVofgrogHi8vQF6Rt0tRaVPRhWynqTpo5IWxmFWfXpcwZjtlpmQajLrNt dBrigwd4rs1e+lApnhJc3vKXYbF+mK5P9aKJ+ZgxNfLAr4KAF8GEdxnmGIW3QOksmF7l 3QMpowiRKDaoRDRLFyiMnmlQuGjd0xmaGzgpfJYwOZJgy4VVeU00tiTDYxFQuTz7Q/hG F+Ffu96Cd1IQEwGUjKSi/eg3xPq4mAg0fNFstIsZ+lpHUhlVNQpLpdEVHC0AIH4/ghSp D7hyZ4QZYavBoN3bNHrpaL7AHtam8OhKRh5Rclv4teZ5tAyr8RWkaalkFtuU1Gp9sDWR Dlng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8DX5bhK9n4fu1fjX8X/qRKA4qZnHY4LMDF3fL6HL3cU=; b=gpua14cHA+hPQkvd3crzZnP0n3U3qWecpzyt+JqKpDLq8AtW40vYhH8o/sdX++ykSF 7k5t5gPq80HOi8ebTXn5gKcXJCV2wYf1NWmqXeGkTzAOidCSADZAiHzW9ahn+y4VuVxk ayO7BNFBzMtphp0UwBusPeMipBuNSij1Bna4qPRCo01k/gyV7JwauDS9dSUPVZDBd9Nn xLUuUnfrOFejW5IEOFdfiFnHfQb5bTOz6rz2yx2bk6QBLqxBeYaeujEwEICPXbQS+M0q C0mUiJjYSPf9gEsT+8C1Sa9LZeG/SI6DvLhVmWuhklR5xMqGkAhqbvHIBUMmT0iS2CPb OAVA== X-Gm-Message-State: AOAM531d7JP23nAkk3Bpp1jiKhufYEEeGOOiAmNTKlVnVwSXPGoWR5ne 1lxtiBQD9vy0ZbjOCEENnqKC2+RIbOiCOXKUkhtw1o0T X-Google-Smtp-Source: ABdhPJze95I1DSra3/jYy2g4OAyixAuR6hbtiX1ElK0Kv5pILdruP+tcYI+JFMNUtOazl3OwYBXiT72EsOASc9733UU= X-Received: by 2002:adf:aa9a:: with SMTP id h26mr3978897wrc.437.1639569514692; Wed, 15 Dec 2021 03:58:34 -0800 (PST) MIME-Version: 1.0 References: <5f137253b6b055b7f2ae5b02ebf67f0ea5419cde.camel@cybertec.at> <28049bf6e24b9138f1484ce5716c692b19845ceb.camel@cybertec.at> In-Reply-To: <28049bf6e24b9138f1484ce5716c692b19845ceb.camel@cybertec.at> From: Daulat Date: Wed, 15 Dec 2021 17:28:23 +0530 Message-ID: Subject: Re: ERROR: could not open file "pg_tblspc To: Laurenz Albe Cc: pgsql-admin Content-Type: multipart/alternative; boundary="00000000000082039f05d32e063c" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000082039f05d32e063c Content-Type: text/plain; charset="UTF-8" Thanks a lot. It is working after rebuilding the index. On Wed, Dec 15, 2021 at 1:57 PM Laurenz Albe wrote: > On Tue, 2021-12-14 at 23:12 +0530, Daulat wrote: > > Will it work if we rebuild that index ? Looks like it is an issue with > the index. > > > > On Tue, Dec 14, 2021 at 10:55 PM Daulat wrote: > > > Sorry I missed it ! > > > > > > The output of query is > > > > > > SELECT oid::regclass, relkind FROM pg_class WHERE relfilenode = 876783; > > > oid | relkind > > > ----------------------------+--------- > > > grc.masterdata_code_unique | i > > Yes, the index file is missing. If you are lucky, REINDEX INDEX will help. > > You should figure out who or what goes around deleting files in your > data directory. > > Yours, > Laurenz Albe > -- > Cybertec | https://www.cybertec-postgresql.com > > --00000000000082039f05d32e063c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks a lot. It is working after rebuilding the index.=C2= =A0


On Wed, Dec 15, 2021 at 1:57 PM Laurenz Albe <laurenz.albe@cybertec.at> wr= ote:
On Tue, 202= 1-12-14 at 23:12 +0530, Daulat wrote:
> Will it work if we rebuild that index ? Looks like it is an issue with= the index.
>
> On Tue, Dec 14, 2021 at 10:55 PM Daulat <daulat.dba@gmail.com> wrote:
> > Sorry I missed it=C2=A0 !=C2=A0
> >
> > The output of query is=C2=A0
> >
> > SELECT oid::regclass, relkind FROM pg_class WHERE relfilenode =3D= 876783;
> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 oid =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 | relkind
> > ----------------------------+---------
> > =C2=A0grc.masterdata_code_unique | i

Yes, the index file is missing.=C2=A0 If you are lucky, REINDEX INDEX will = help.

You should figure out who or what goes around deleting files in your
data directory.

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

--00000000000082039f05d32e063c--