Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Za9bQ-0004sJ-S7 for pgsql-admin@arkaria.postgresql.org; Thu, 10 Sep 2015 21:41:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Za9bQ-0000yb-98 for pgsql-admin@arkaria.postgresql.org; Thu, 10 Sep 2015 21:41:56 +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.84) (envelope-from ) id 1Za9Zj-00050L-1r for pgsql-admin@postgresql.org; Thu, 10 Sep 2015 21:40:12 +0000 Received: from nm26-vm5.bullet.mail.gq1.yahoo.com ([98.136.216.132]) by magus.postgresql.org with esmtps (TLS1.0:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1Za9Zf-0003LA-9O for pgsql-admin@postgresql.org; Thu, 10 Sep 2015 21:40:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s2048; t=1441921203; bh=3J9gxxbZrFsej3PFbEcTDLbytuJYtMmuQGRSka5gQyA=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=FXgOReJ2GMO6AZN/TdkOo2auwoOTU7ba/i5KZUPhawOHq568EviBCEPYHMwAET6ZGkCTiZFg0+uKtyWr4QVjtYh7LzEh/SZKVZ6C4JIJKXITJe72FL25ctklwxbWdBvk8l0G60qB5TIOS1U3IrIDgqjmR0AwxKyBxS+GWHw7y9z9nMPZWE/bqCrQPBDpTpZpKb2r5Yl9QEDpLyHrxcxyK0LKfnLvByRrNUYHMvsaUIaT/M5Ma78eMc/i0UUOzeqD+eXcVzw7XbUwaH16o5l1gUG+ZVpc6iTKNSj+d2MOmzKu5X5vf3esLkVCWetDVhjS2cspiO0q6jGek8Z/zVywaw== Received: from [216.39.60.180] by nm26.bullet.mail.gq1.yahoo.com with NNFMP; 10 Sep 2015 21:40:03 -0000 Received: from [98.137.12.199] by tm16.bullet.mail.gq1.yahoo.com with NNFMP; 10 Sep 2015 21:40:03 -0000 Received: from [127.0.0.1] by omp1007.mail.gq1.yahoo.com with NNFMP; 10 Sep 2015 21:40:03 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 666000.6196.bm@omp1007.mail.gq1.yahoo.com X-YMail-OSG: Mnh8s_4VM1nwGh2J0IF_E4Djv3ibXjy5MyN.SHq8DNYfYJ9BN.sm8MjTmEMCCh2 rTbxQFaP68.ozsFDXI8m6_t2W43qng5rwOAxNDR.J6CwF24mDKNwJ7wz7p.yqkz0mhe.tT7USERt im.0FKYYOZk6qsb06kpcJrr5HEQliQLDNxhs56BNaTFmTqncjCaIZ.kCviEwsKukOwJI8HhkNEBV HenwpL03bUt7MvWtS3OyveqT8BTJZvXlVNPPUL4gPaSPolUn2E1fs6tRAHMhlmxAD6Go5wlDt3I2 obgOcaDJTNw85zmewJiZx8Kzk4EcgRSBa00fHjATWA1iRNAHs4QhMXYNEgfC0TerKUmaf7ORb8bp BTk.x4bpobdfKZsodJOD99N2K.c15ZzpoMARcCNcNlF0GFPhza1PcGfyg09vOfIlUzIj8g.U27Aj 6ftDdlA..fG1SboAzUN4hc82pT75B9.Cqm1Wh7SRSk_yQMlTS_FXdkKubqthogjRGnESHkBVgY79 cxYUOU49CQl9iHHKC6_yzC3TD Received: by 98.137.12.246; Thu, 10 Sep 2015 21:40:03 +0000 Date: Thu, 10 Sep 2015 21:39:58 +0000 (UTC) From: Kevin Grittner Reply-To: Kevin Grittner To: Laura Horsky , "pgsql-admin@postgresql.org" Message-ID: <591533476.500736.1441921198320.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: References: Subject: Re: PostgreSQL won't start MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Length: 1676 X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Laura Horsky wrote: > I have a PostgreSQL server that was restarted. When it was > brought back online, That is pretty vague. Exactly how was it restarted? How was it brought back online? Was it really just that, or was this a restore from backup or a copy on a new machine? Exactly what version of PostgreSQL is this? > PostgreSQL fails to start with: > > ....LOG: database system was interrupted; last known up at .... You didn't get a clean shutdown of the database server, so something was done that was not optimal. We can't give very detailed advice without knowing what. By the way, seeing timestamps for the startup and the "last known up at" times would provide at least some clue what might have happened. > I have pg_dumps that were taken prior to failure that I can > restore to if I can get PostgreSQL running again. That's good. If you wrangle what you have into starting you should hang onto those dumps for a while (maybe a few months) after you are running again. You may need to fish some data out of them if you later see corruption or missing data. > How can I fix PostgreSQL? I have seen pg_resetxlog but there are > so many warnings, I want to make sure that this is the tool to > use. First thing is to make a filesystem-level copy of the $PGDATA directory tree, in case your recovery attempts make things worse. pg_resetxlog may well allow the database to start, but you should heed the warnings about pg_dump and restore of the result to eliminate hidden corruption, and review after that to look for damaged or missing data. -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin