pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Boblitz John <john.boblitz@bertschi.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: Unable to Connect to DB Instance
Date: Wed, 04 Jul 2018 15:36:48 -0400
Message-ID: <67068.1530733008@sss.pgh.pa.us> (raw)
In-Reply-To: <9b052e72ab7e4cfead0f58bc4913bec6@bertschi.com>
References: <d51ff9e4d1604541a7bbe635cbc97367@bertschi.com>
	<CAG7mmoyjtMx2N==U23LC6mavCxLwpoLmu7nKEBPsKsf6Goe2Wg@mail.gmail.com>
	<5c594ba9d5c94a9eb595c710df2d7735@bertschi.com>
	<66417.1530719397@sss.pgh.pa.us>
	<9b052e72ab7e4cfead0f58bc4913bec6@bertschi.com>

Boblitz John <john.boblitz@bertschi.com> writes:
> Thanks - I get "pg_db_role_setting" as a response.

Hm ... not its index?  If the table itself is gone, it's surprising
that you can get through session startup.

> I have already attempted to reindex system but get:

I had in mind just reindexing the specific table you're having trouble
with ... but this:

> ERROR:  could not open file "base/11919/11680": No such file or directory

shows that there's another table that also has a problem, and there
may be more :-(.  I don't know what the odds are that you can get out
of this completely.  I would NOT recommend "reindex system" as a
blunderbuss solution.  You do not know how much is corrupted and there's
a significant chance of making things worse by tromping over the whole
database using catalogs of uncertain reliability.

Did you identify which table 11680 is?

In the case of pg_db_role_setting, a possible solution is to "touch" the
missing file so it exists; it'll be empty, which means that you'll have
lost any ALTER DATABASE/ROLE SET settings, but that's better than not
being able to dump at all.  (You might then need to REINDEX
pg_db_role_setting to get its indexes in sync with it being empty.)

Whether an equally drastic answer is tolerable for your other missing
table(s) depends on what they are...

			regards, tom lane




view thread (9+ messages)  latest in thread

Message-ID: <67068.1530733008@sss.pgh.pa.us>
Permalink:  ../67068.1530733008@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/67068.1530733008@sss.pgh.pa.us

 · 

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 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: tgl@sss.pgh.pa.us, john.boblitz@bertschi.com
  Subject: Re: Unable to Connect to DB Instance
  In-Reply-To: <67068.1530733008@sss.pgh.pa.us>
  References: <d51ff9e4d1604541a7bbe635cbc97367@bertschi.com> <CAG7mmoyjtMx2N==U23LC6mavCxLwpoLmu7nKEBPsKsf6Goe2Wg@mail.gmail.com> <5c594ba9d5c94a9eb595c710df2d7735@bertschi.com> <66417.1530719397@sss.pgh.pa.us> <9b052e72ab7e4cfead0f58bc4913bec6@bertschi.com> <67068.1530733008@sss.pgh.pa.us>

* 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