X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 49F939DCEB5; Wed, 7 Dec 2005 09:06:55 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 67129-03; Wed, 7 Dec 2005 09:06:56 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from svana.org (svana.org [203.20.62.76]) by postgresql.org (Postfix) with ESMTP id C6BAD9DCD82; Wed, 7 Dec 2005 09:06:50 -0400 (AST) Received: from kleptog by svana.org with local (Exim 3.35 #1 (Debian)) id 1Ejz0M-00017W-00; Thu, 08 Dec 2005 00:06:42 +1100 Date: Wed, 7 Dec 2005 14:06:42 +0100 From: Martijn van Oosterhout To: Richard van den Berg Cc: pgsql-general@postgresql.org, pgsql-ports@postgresql.org Subject: Re: PostgreSQL 8.1.0 RHEL / Debian incompatible packages Message-ID: <20051207130639.GC3450@svana.org> Reply-To: Martijn van Oosterhout Mail-Followup-To: Richard van den Berg , pgsql-general@postgresql.org, pgsql-ports@postgresql.org References: <4396C3FD.3000902@trust-factory.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KN5l+BnMqAQyZLvT" Content-Disposition: inline In-Reply-To: <4396C3FD.3000902@trust-factory.com> User-Agent: Mutt/1.3.28i X-PGP-Key-ID: Length=1024; ID=0x0DC67BE6 X-PGP-Key-Fingerprint: 295F A899 A81A 156D B522 48A7 6394 F08A 0DC6 7BE6 X-PGP-Key-URL: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.249 required=5 tests=[AWL=0.249] X-Spam-Score: 0.249 X-Spam-Level: X-Archive-Number: 200512/370 X-Sequence-Number: 87933 --KN5l+BnMqAQyZLvT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 07, 2005 at 12:14:05PM +0100, Richard van den Berg wrote: > I just tried to move my database files over from a CentOS 4.2 (RHEL AS 4 > clone) machine to Debian 3.1. Unfortunately, the server complains: >=20 > 2005-12-07 11:55:04 CET FATAL: database files are incompatible with serv= er > 2005-12-07 11:55:04 CET DETAIL: The database cluster was initialized > without HAVE_INT64_TIMESTAMP but the server was compiled with > HAVE_INT64_TIMESTAMP. > 2005-12-07 11:55:04 CET HINT: It looks like you need to recompile or > initdb. > Is there a good reason that the official RPM on postgresql.org is not > build with HAVE_INT64_TIMESTAMP ? It would have been so nice if this > would have worked. :-/ PostgreSQL does not guarentee any kind of portability of the datafiles between major releases, different platforms and as you pointed out, different compile options (including for example number of index keys, blocksize). There are defaults but obviously they were compiled differently. The exact option here is USE_INTEGER_DATETIMES. Just be glad the server didn't startup and subsequently crash the first time you read a timestamp value. Have a nice day, --=20 Martijn van Oosterhout http://svana.org/kleptog/ > Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a > tool for doing 5% of the work and then sitting around waiting for someone > else to do the other 95% so you can sue them. --KN5l+BnMqAQyZLvT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQFDlt5eIB7bNG8LQkwRAo5FAJ938wOChftfMLxGMoaabFWNbVTrRgCfWxma Jj8xZwOD95NS2ofP9qh/3fg= =vkF4 -----END PGP SIGNATURE----- --KN5l+BnMqAQyZLvT--