Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 73D48476578 for ; Tue, 29 Oct 2002 10:16:34 -0500 (EST) Received: from quack.kfu.com (adsl-67-113-12-90.dsl.snfc21.pacbell.net [67.113.12.90]) by postgresql.org (Postfix) with ESMTP id 735C0476558 for ; Tue, 29 Oct 2002 10:16:33 -0500 (EST) Received: from morpheus.kfu.com (morpheus.kfu.com [IPv6:3ffe:1200:301b:1:2d0:b7ff:fe3f:bdd0]) by quack.kfu.com (8.12.6/8.12.6) with ESMTP id g9TFGa7w060869 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Tue, 29 Oct 2002 07:16:36 -0800 (PST) (envelope-from nsayer@quack.kfu.com) Received: from quack.kfu.com (localhost [127.0.0.1]) by morpheus.kfu.com (8.12.6/8.12.6) with ESMTP id g9TFGVAv017100 for ; Tue, 29 Oct 2002 07:16:31 -0800 (PST) (envelope-from nsayer@quack.kfu.com) Message-ID: <3DBEA64E.6030407@quack.kfu.com> Date: Tue, 29 Oct 2002 07:16:30 -0800 From: Nick Sayer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2b) Gecko/20021024 X-Accept-Language: en, en-US, en-GB MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: pg_upgrade problems Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=0.3 required=5.0 tests=SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_MOZILLA_UA, X_ACCEPT_LANG version=2.41 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/283 X-Sequence-Number: 6141 I just got done upgrading 2 databases from 7.1.x to 7.2.3. In both cases the procedure outlined in pg_upgrade.1 failed. In one case, the failure was catastrophic. In neither case was any data lost (because I backed up with pg_dumpall first), but in both cases it appears the failure was similar: Everything appeared to go fine until the first 'vacuum analyze' after the procedure was complete. In the catastrophic case, unfortunately, I don't have a lot of info. I just sort of told myself, "Oh well. Good thing I backed it up," did another initdb and restored the backup. This was the first case, and the first time I ever attempted a pg_upgrade. In the second case, I was a lot more careful. Even so, the first vacuum analyze failed, but the database seems to have recovered without incident. Here's what the log said: DEBUG: database system is ready DEBUG: --Relation pg_type-- DEBUG: Pages 3: Changed 0, Empty 0; Tup 170: Vac 0, Keep 0, UnUsed 0. Total CPU 0.00s/0.00u sec elapsed 0.00 sec. DEBUG: Analyzing pg_type FATAL 2: open of /home/pgsql/data/pg_clog/0004 failed: No such file or directory DEBUG: server process (pid 57274) exited with exit code 2 DEBUG: terminating any other active server processes DEBUG: all server processes terminated; reinitializing shared memory and semaphores DEBUG: database system was interrupted at 2002-10-29 06:19:28 PST DEBUG: checkpoint record is at 0/4E00093C DEBUG: redo record is at 0/4E00093C; undo record is at 0/0; shutdown TRUE DEBUG: next transaction id: 4488258; next oid: 16781 DEBUG: database system was not properly shut down; automatic recovery in progress DEBUG: redo starts at 0/4E00097C DEBUG: clog file /home/pgsql/data/pg_clog/0004 doesn't exist, reading as zeroes DEBUG: ReadRecord: record with zero length at 0/4E000B34 DEBUG: redo done at 0/4E000B10 DEBUG: database system is ready At this point, re-performing 'vacuum analyze' succeeded. Poking around at the actual data shows no aparent data loss. 1. What happened? 2. Is this an expected side effect of pg_upgrade? 3. Am I correct in believing that no data was actually lost? 4. Did I forget to do something critical before the pg_upgrade -1?