Re: PostgreSQL 8.1.0 RHEL / Debian incompatible packages

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Richard van den Berg <richard(dot)vandenberg(at)trust-factory(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, pgsql-ports(at)postgresql(dot)org
Subject: Re: PostgreSQL 8.1.0 RHEL / Debian incompatible packages
Date: 2005-12-07 13:06:42
Message-ID: 20051207130639.GC3450@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-ports

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:
>
> 2005-12-07 11:55:04 CET FATAL: database files are incompatible with server
> 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.

<snip>

> 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,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> 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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard van den Berg 2005-12-07 13:15:29 Re: PostgreSQL 8.1.0 RHEL / Debian incompatible packages
Previous Message Martijn van Oosterhout 2005-12-07 12:50:37 Re: cannot find source of "add missing from" error

Browse pgsql-ports by date

  From Date Subject
Next Message Richard van den Berg 2005-12-07 13:15:29 Re: PostgreSQL 8.1.0 RHEL / Debian incompatible packages
Previous Message Devrim GUNDUZ 2005-12-07 11:34:15 Re: PostgreSQL 8.1.0 RHEL / Debian incompatible packages