Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fao4A-0007mq-Oq for pgsql-general@arkaria.postgresql.org; Wed, 04 Jul 2018 20:07:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fao48-0006fy-7X for pgsql-general@arkaria.postgresql.org; Wed, 04 Jul 2018 20:07:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fao46-0006fr-IJ for pgsql-general@lists.postgresql.org; Wed, 04 Jul 2018 20:07:52 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fao40-0003OL-2l for pgsql-general@postgresql.org; Wed, 04 Jul 2018 20:07:49 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id DF91621AF1; Wed, 4 Jul 2018 16:07:41 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 04 Jul 2018 16:07:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=WPyf+NxHVQvX3Eu32P48ez9s2j6sZ /mvdbaQWKs4LRM=; b=nXTARpqORUzzZ203korw61Pyuh4XcqvQIKNNg603sCyzl bqhQou5NH3HqLqGx4VH5sSqB2hVm08jkB8K2pH6GZU5QnxZWlSueMSoq+5bpwkVu Zpxerbs/VxBBCrRNpR8VorfrZ37TZiTiibh/jGiWRmIQ5SXuOJ7N7DItfIOnIeIa m92TlfbzeVFMFUS5E4vY+w29HLzBBV73zCjFwy2sh0XZWqzbU2cckE9R0mgXaafa OVB2laUViUL9mZWdzC0PbrmVz/krkUNm059Avi9I4nlAJ7gzmYfYoqTcLFZjOm2F vIpLKnaFxpRvrrHfk0L3v56g5h4+eHxbRy6gvLG7Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=WPyf+N xHVQvX3Eu32P48ez9s2j6sZ/mvdbaQWKs4LRM=; b=iOe7//Yz9FAetfHSwbgcA3 J1wk5Wn0wlz8uCV9uan5tUAhHTjCY2fwcPVXGG3ygsJjvtCz+gWtfzRdl5eVpjlj wESIG15eAZTtoxwS6UoN7AUV5Wrh0x4mTKS99sstODodD0rn/1TuufdAZtDLAhvT PgEVls3IntFMslYCeuYSgvFNbol6PNzXRpfDc52nzPEt8ryyxBz7XC9wsvQnN2KV z/P2aaengh22vtxQew1ZcPGtgxG2EZ3ARLHENBeOAdCpWyKs4pa3EunPhmiV3/Qb LmrRvKXy9nJpndJjH6bzJ/uREDb+djDrI7YhjMW/7JqbAhgxhkYZx1xVN0qS0KFA == X-ME-Proxy: X-ME-Sender: Received: from [192.168.1.3] (unknown [71.212.134.181]) by mail.messagingengine.com (Postfix) with ESMTPA id E234010260; Wed, 4 Jul 2018 16:07:40 -0400 (EDT) Subject: Re: Unable to Connect to DB Instance To: Tom Lane , Boblitz John Cc: "pgsql-general@postgresql.org" References: <5c594ba9d5c94a9eb595c710df2d7735@bertschi.com> <66417.1530719397@sss.pgh.pa.us> <9b052e72ab7e4cfead0f58bc4913bec6@bertschi.com> <67068.1530733008@sss.pgh.pa.us> From: Adrian Klaver Message-ID: Date: Wed, 4 Jul 2018 13:07:40 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <67068.1530733008@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 07/04/2018 12:36 PM, Tom Lane wrote: > Boblitz John 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? There is also this from the OP: 2018-07-04 09:15:23 CEST 192.168.250.50(28561) g11BaseERROR: could not open file "pg_tblspc/24579/PG_9.1_201105231/24580/11866": No such file or directory Which failed on a query that references pgAgent and Slony. So are you using either or both of those programs? > > 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 > > -- Adrian Klaver adrian.klaver@aklaver.com