pg.ddx.io  pgsql-ports@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martijn van Oosterhout <kleptog@svana.org>
To: Richard van den Berg <richard.vandenberg@trust-factory.com>
Cc: pgsql-general@postgresql.org
Cc: pgsql-ports@postgresql.org
Subject: Re: PostgreSQL 8.1.0 RHEL / Debian incompatible packages
Date: Wed, 7 Dec 2005 14:06:42 +0100
Message-ID: <20051207130639.GC3450@svana.org> (raw)
In-Reply-To: <4396C3FD.3000902@trust-factory.com>
References: <4396C3FD.3000902@trust-factory.com>

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@svana.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.

view thread (9+ messages)  latest in thread

Message-ID: <20051207130639.GC3450@svana.org>
Permalink:  ../20051207130639.GC3450@svana.org/
Also on:    postgresql.org/message-id/20051207130639.GC3450@svana.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-ports@postgresql.org
  Cc: kleptog@svana.org, richard.vandenberg@trust-factory.com, pgsql-general@postgresql.org
  Subject: Re: PostgreSQL 8.1.0 RHEL / Debian incompatible packages
  In-Reply-To: <20051207130639.GC3450@svana.org>
  References: <4396C3FD.3000902@trust-factory.com> <20051207130639.GC3450@svana.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox