Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 9A2BCEC7B27 for ; Fri, 6 Jul 2012 14:32:09 -0300 (ADT) Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SnCO0-00066a-J0 for pgsql-bugs@postgresql.org; Fri, 06 Jul 2012 17:32:09 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1SnCNl-0006rQ-Cq; Fri, 06 Jul 2012 13:31:53 -0400 Date: Fri, 6 Jul 2012 13:31:53 -0400 From: Bruce Momjian To: Payal Singh Cc: Tom Lane , Craig Ringer , pgsql-bugs@postgresql.org Subject: Re: Problem with pg_upgrade Message-ID: <20120706173153.GC6235@momjian.us> References: <4FF5BD8A.5010307@ringerc.id.au> <1316.1341527311@sss.pgh.pa.us> <20120706033700.GB15538@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201207/49 X-Sequence-Number: 33525 On Fri, Jul 06, 2012 at 01:20:21PM -0400, Payal Singh wrote: > Hi, > > I restored the backup on 9.1, made sure the database reached a consistent state > and checkpointed. Then I performed the upgrade. Upgrade completed successfully > but on running vacuumdb it gave the exact same error. The contents of log file > are: > > > 1. 2012-07-06 12:08:08 EDT [] [21723]: [1-1] user=,db=,e=00000: LOG: database > system was interrupted while in recovery at log time 2012-07-03 03:07:02 > EDT Any idea why you are seeing the above "interrupted while in recovery" message? > 2. 2012-07-06 12:08:08 EDT [] [21723]: [2-1] user=,db=,e=00000: HINT: If this > has occurred more than once some data might be corrupted and you might need > to choose an earlier recovery target. > 3. 2012-07-06 12:08:08 EDT [] [21723]: [3-1] user=,db=,e=00000: LOG: creating > missing WAL directory "pg_xlog/archive_status" > 4. 2012-07-06 12:08:08 EDT [] [21723]: [4-1] user=,db=,e=00000: LOG: database > system was not properly shut down; automatic recovery in progress The above is also confusing. pg_upgrade uses pg_ctl -w stop/start, so I am confused, how it could show as recovering. > > Also, this time I did not run vacuumdb on old server before performing the > upgrade. I think you had better show us exactly what you are doing here --- how you are setting up these clusters, how you are running pg_upgrade, what commands you are typing, etc. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +