X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 436A5476347 for ; Thu, 27 Mar 2003 14:09:06 -0500 (EST) Received: from utility.wgcr.org (unknown [206.74.232.205]) by postgresql.org (Postfix) with ESMTP id 3531B476350 for ; Thu, 27 Mar 2003 14:09:01 -0500 (EST) Received: from utility.wgcr.org ([10.1.0.2]) by utility.wgcr.org (8.12.8/8.12.5) with ESMTP id h2RJ8x6n022739; Thu, 27 Mar 2003 14:08:59 -0500 Received: from ([10.1.2.248]) by utility.wgcr.org (MailMonitor for SMTP v1.2.1 ) ; Thu, 27 Mar 2003 14:08:59 -0500 (EST) Content-Type: text/plain; charset="iso-8859-1" From: Lamar Owen To: Hacksaw , pgsql-admin@postgresql.org Subject: Re: Upgrading: So now you tell me!!?!? Date: Thu, 27 Mar 2003 14:08:59 -0500 User-Agent: KMail/1.4.3 References: <200303271817.h2RIHBMJ005220@habitrail.home.fools-errant.com> In-Reply-To: <200303271817.h2RIHBMJ005220@habitrail.home.fools-errant.com> MIME-Version: 1.0 Message-Id: <200303271408.59247.lamar.owen@wgcr.org> Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, hits=-37.8 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,MANY_EXCLAMATIONS, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_KMAIL autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200303/463 X-Sequence-Number: 8103 On Thursday 27 March 2003 13:17, Hacksaw wrote: > I had an older installation of postgresql, 7.1.3. I got down the packages > for 7.3.2. I looked at a few of the files in the directories where the > packages were kept, and seeing no particular warnings, I ran rpm -Uvh > postgresql*, which ran without a hitch, until I restarted the postmaster. > Then it informed me that I should have dumped the damned database before I > upgraded the binaries. This has been true for over four years. It is an interaction between=20 PostgreSQL's insistence on dump/restore between major versions and RPM's=20 insistence that no user input or output can occur during an rpm invocation.= =20=20 Complain to Jeff Johnson at Red Hat about the RPM issue, and complain to=20 pgsql-hackers@postgresql.org about the lack of a smooth upgrade. Find the 7.1.3 packages you had and reinstall them using rpm -Uvh=20 --oldpackage. Then do a proper dump. > This is like seeing the "Bridge Out" sign at the bottom of the river. It isn't a good idea to blindly upgrade any package ever. Regardless of th= e=20 normal ease. Things break -- witness the situation with the current Wine a= nd=20 the Red Hat 8.0 glibc security update. Be prepared to back out the upgrade= =20 by having the old packages available. > Why didn't the preinstall scripts dump the database? Why doesn't the FAQ = or > the README in the download directory mention the required procedure? The preinstall scripts run in a very limited environment. There are things= =20 they can't do; reliably dumping a database is one of the things that they a= re=20 very poor at doing. As to the README, well, that would be my fault. There= =20 _is_ a README.rpm-dist file in the RPM itself, and I had previously been=20 putting that file in the download directory. I did not do this for this=20 release. Although, it didn't make much difference when it was in the=20 download directory; I still got all kinds of grief. > If there is going to be a conflict that might require having the old > binaries around, why do the new ones replace the old ones? Argh. The newest RPM's have a specific conflicts: clause against the old= =20 version. It is supposed to work (it worked once here, but I can't=20 reproduce). Apparently RPM has a bug in the processing of the conflicts=20 clause where the package conflicts with previous versions of itself.=20=20 I have been in your shoes. It is not a pleasant place to be. But it's not= =20 something the RPM distribution can fix, since it is endemic to PostgreSQL= =20 itself to require a dump/initdb/restore cycle that by its nature conflicts= =20 with the RPM upgrade scenario. I've tried to kludge around it; the cure wa= s=20 worse than the disease. This is why I got into the mostly thankless positi= on=20 of RPM maintainer. --=20 Lamar Owen WGCR Internet Radio 1 Peter 4:11