pg.ddx.io  pgsql-ports@postgresql.org mailing list archive  
help / color / mirror / Atom feed
PostgreSQL 8.1.0 RHEL / Debian incompatible packages
9+ messages / 5 participants
[nested] [flat]

* PostgreSQL 8.1.0 RHEL / Debian incompatible packages
@ 2005-12-07 11:14 Richard van den Berg <richard.vandenberg@trust-factory.com>
  2005-12-07 11:34 ` Re: PostgreSQL 8.1.0 RHEL / Debian incompatible packages Devrim GUNDUZ <devrim@commandprompt.com>
  2005-12-07 13:06 ` Re: PostgreSQL 8.1.0 RHEL / Debian incompatible packages Martijn van Oosterhout <kleptog@svana.org>
  2005-12-07 13:54 ` Re: PostgreSQL 8.1.0 RHEL / Debian incompatible packages Devrim GUNDUZ <devrim@commandprompt.com>
  2005-12-07 14:48 ` Re: PostgreSQL 8.1.0 RHEL / Debian incompatible packages Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 4 replies; 9+ messages in thread

From: Richard van den Berg @ 2005-12-07 11:14 UTC (permalink / raw)
  To: pgsql-general@postgresql.org; pgsql-ports

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.

The message is clear enough, but I'm kinda disappointed because I am
using the official packages for both distribution:

RHEL 4:
postgresql-server-8.1.0-2PGDG.i686.rpm from
http://www.postgresql.org/ftp/binary/v8.1.0/linux/rpms/redhat/rhel-as-4/

Debian:
postgresql-8.1_8.1.0-3_i386.deb from
http://packages.debian.org/testing/misc/postgresql-8.1

It's too bad these two binary distributions are not compatible with
respect to the database files.

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. :-/

Sincerely,

-- 
Richard van den Berg, CISSP
-------------------------------------------
Trust Factory B.V. |     www.dna-portal.net
Bazarstraat 44a    |  www.trust-factory.com
2518AK The Hague   |  Phone: +31 70 3620684
The Netherlands    |  Fax  : +31 70 3603009
-------------------------------------------



^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: PostgreSQL 8.1.0 RHEL / Debian incompatible packages
  2005-12-07 11:14 PostgreSQL 8.1.0 RHEL / Debian incompatible packages Richard van den Berg <richard.vandenberg@trust-factory.com>
@ 2005-12-07 11:34 ` Devrim GUNDUZ <devrim@commandprompt.com>
  3 siblings, 0 replies; 9+ messages in thread

From: Devrim GUNDUZ @ 2005-12-07 11:34 UTC (permalink / raw)
  To: Richard van den Berg <richard.vandenberg@trust-factory.com>; +Cc: pgsql-general@postgresql.org; pgsql-ports


Hi,

On Wed, 7 Dec 2005, 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.
>
> The message is clear enough, but I'm kinda disappointed because I am
> using the official packages for both distribution:

Well, this is because Debian packages are built
with --enable-integer-datetimes. However we don't build the RPMs with 
that. This has been proposed before AFAIR, but it has been rejected.

So you should dump/reload I think, or rebuild our SRPM
with --enable-integer-datetimes enabled.

Regards,
-- 
The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/




^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: PostgreSQL 8.1.0 RHEL / Debian incompatible packages
  2005-12-07 11:14 PostgreSQL 8.1.0 RHEL / Debian incompatible packages Richard van den Berg <richard.vandenberg@trust-factory.com>
@ 2005-12-07 13:06 ` Martijn van Oosterhout <kleptog@svana.org>
  2005-12-07 13:15   ` Re: PostgreSQL 8.1.0 RHEL / Debian incompatible packages Richard van den Berg <richard.vandenberg@trust-factory.com>
  3 siblings, 1 reply; 9+ messages in thread

From: Martijn van Oosterhout @ 2005-12-07 13:06 UTC (permalink / raw)
  To: Richard van den Berg <richard.vandenberg@trust-factory.com>; +Cc: pgsql-general@postgresql.org; 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@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.

^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: PostgreSQL 8.1.0 RHEL / Debian incompatible packages
  2005-12-07 11:14 PostgreSQL 8.1.0 RHEL / Debian incompatible packages Richard van den Berg <richard.vandenberg@trust-factory.com>
  2005-12-07 13:06 ` Re: PostgreSQL 8.1.0 RHEL / Debian incompatible packages Martijn van Oosterhout <kleptog@svana.org>
@ 2005-12-07 13:15   ` Richard van den Berg <richard.vandenberg@trust-factory.com>
  2005-12-07 14:22     ` Re: PostgreSQL 8.1.0 RHEL / Debian incompatible packages Martijn van Oosterhout <kleptog@svana.org>
  0 siblings, 1 reply; 9+ messages in thread

From: Richard van den Berg @ 2005-12-07 13:15 UTC (permalink / raw)
  To: pgsql-general@postgresql.org; pgsql-ports

Martijn van Oosterhout wrote:
> Just be glad the server didn't startup and subsequently crash the first
> time you read a timestamp value.

I was pleasantly surprised that PostgreSQL gave such a detailed error
message. Even down to the compile option that was different, good job.

I'll just do a pg_dump / pg_restore cycle, as I was planning to do. Is
there any guarantee for compatability the pg_dump format? Say, can a
8.1.0 pg_dump made using a 64 bit Solaris SPARC binary be read using a
32 bit Intel Linux pg_restore 8.1.0 binary? ;-)

-- 
Richard van den Berg, CISSP
-------------------------------------------
Trust Factory B.V. |     www.dna-portal.net
Bazarstraat 44a    |  www.trust-factory.com
2518AK The Hague   |  Phone: +31 70 3620684
The Netherlands    |  Fax  : +31 70 3603009
-------------------------------------------



^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: PostgreSQL 8.1.0 RHEL / Debian incompatible packages
  2005-12-07 11:14 PostgreSQL 8.1.0 RHEL / Debian incompatible packages Richard van den Berg <richard.vandenberg@trust-factory.com>
  2005-12-07 13:06 ` Re: PostgreSQL 8.1.0 RHEL / Debian incompatible packages Martijn van Oosterhout <kleptog@svana.org>
  2005-12-07 13:15   ` Re: PostgreSQL 8.1.0 RHEL / Debian incompatible packages Richard van den Berg <richard.vandenberg@trust-factory.com>
@ 2005-12-07 14:22     ` Martijn van Oosterhout <kleptog@svana.org>
  0 siblings, 0 replies; 9+ messages in thread

From: Martijn van Oosterhout @ 2005-12-07 14:22 UTC (permalink / raw)
  To: Richard van den Berg <richard.vandenberg@trust-factory.com>; +Cc: pgsql-general@postgresql.org; pgsql-ports

On Wed, Dec 07, 2005 at 02:15:29PM +0100, Richard van den Berg wrote:
> I'll just do a pg_dump / pg_restore cycle, as I was planning to do. Is
> there any guarantee for compatability the pg_dump format? Say, can a
> 8.1.0 pg_dump made using a 64 bit Solaris SPARC binary be read using a
> 32 bit Intel Linux pg_restore 8.1.0 binary? ;-)

That's definitly the intention. If you find otherwise, please report as
a bug.

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.

^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: PostgreSQL 8.1.0 RHEL / Debian incompatible packages
  2005-12-07 11:14 PostgreSQL 8.1.0 RHEL / Debian incompatible packages Richard van den Berg <richard.vandenberg@trust-factory.com>
@ 2005-12-07 13:54 ` Devrim GUNDUZ <devrim@commandprompt.com>
  3 siblings, 0 replies; 9+ messages in thread

From: Devrim GUNDUZ @ 2005-12-07 13:54 UTC (permalink / raw)
  To: Richard van den Berg <richard.vandenberg@trust-factory.com>; +Cc: pgsql-general@postgresql.org; pgsql-ports

Hi,
On Wed, 2005-12-07 at 12:14 +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.
> 
> The message is clear enough, but I'm kinda disappointed because I am
> using the official packages for both distribution:

Well, this is because Debian packages are built
with --enable-integer-datetimes. However we don't build the RPMs with
that. This has been proposed before AFAIR, but it has been rejected.

Also I want to remind that these packages are not "official". Debian
packages and RPMs are built by different people.

So you should dump/reload I think, or rebuild our SRPM
with --enable-integer-datetimes enabled.

Regards,
--
The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/





^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: PostgreSQL 8.1.0 RHEL / Debian incompatible packages
  2005-12-07 11:14 PostgreSQL 8.1.0 RHEL / Debian incompatible packages Richard van den Berg <richard.vandenberg@trust-factory.com>
@ 2005-12-07 14:48 ` Tom Lane <tgl@sss.pgh.pa.us>
  2005-12-07 15:37   ` Re: PostgreSQL 8.1.0 RHEL / Debian incompatible packages Stephen Frost <sfrost@snowman.net>
  2005-12-12 08:41   ` Re: PostgreSQL 8.1.0 RHEL / Debian incompatible packages Richard van den Berg <richard.vandenberg@trust-factory.com>
  3 siblings, 2 replies; 9+ messages in thread

From: Tom Lane @ 2005-12-07 14:48 UTC (permalink / raw)
  To: Richard van den Berg <richard.vandenberg@trust-factory.com>; +Cc: pgsql-general@postgresql.org; pgsql-ports

Richard van den Berg <richard.vandenberg@trust-factory.com> writes:
> 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. :-/

You've got that 100% backwards: you should be complaining to Debian that
it's not their business to editorialize on the default setting.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: PostgreSQL 8.1.0 RHEL / Debian incompatible packages
  2005-12-07 11:14 PostgreSQL 8.1.0 RHEL / Debian incompatible packages Richard van den Berg <richard.vandenberg@trust-factory.com>
  2005-12-07 14:48 ` Re: PostgreSQL 8.1.0 RHEL / Debian incompatible packages Tom Lane <tgl@sss.pgh.pa.us>
@ 2005-12-07 15:37   ` Stephen Frost <sfrost@snowman.net>
  1 sibling, 0 replies; 9+ messages in thread

From: Stephen Frost @ 2005-12-07 15:37 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Richard van den Berg <richard.vandenberg@trust-factory.com>; pgsql-general@postgresql.org; pgsql-ports

* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> Richard van den Berg <richard.vandenberg@trust-factory.com> writes:
> > 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. :-/
> 
> You've got that 100% backwards: you should be complaining to Debian that
> it's not their business to editorialize on the default setting.

The default setting sucks.  You're advocating a position which would
mean more work for our users (since they'd have to recompile their own
packages to achieve a sane setting).  No thanks.

	Stephen

Attachments:

  signature.asc (application/pgp-signature, 188B) download

^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: PostgreSQL 8.1.0 RHEL / Debian incompatible packages
  2005-12-07 11:14 PostgreSQL 8.1.0 RHEL / Debian incompatible packages Richard van den Berg <richard.vandenberg@trust-factory.com>
  2005-12-07 14:48 ` Re: PostgreSQL 8.1.0 RHEL / Debian incompatible packages Tom Lane <tgl@sss.pgh.pa.us>
@ 2005-12-12 08:41   ` Richard van den Berg <richard.vandenberg@trust-factory.com>
  1 sibling, 0 replies; 9+ messages in thread

From: Richard van den Berg @ 2005-12-12 08:41 UTC (permalink / raw)
  To: 342369@bugs.debian.org; pgsql-general@postgresql.org; pgsql-ports

Tom Lane wrote:
> You've got that 100% backwards: you should be complaining to Debian that
> it's not their business to editorialize on the default setting.

I've forwarded this thread to Debian as a bug report. Their answer is
they will discuss this setting again when 8.2 comes out. The full answer
is here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=342369

For the Debian bug track system, the full discussion on the postgresql
mailing list starts here:
http://archives.postgresql.org/pgsql-general/2005-12/msg00367.php

Thanks everyone for clearing this up.

Sincerely,

-- 
Richard van den Berg, CISSP
-------------------------------------------
Trust Factory B.V. |     www.dna-portal.net
Bazarstraat 44a    |  www.trust-factory.com
2518AK The Hague   |  Phone: +31 70 3620684
The Netherlands    |  Fax  : +31 70 3603009
-------------------------------------------



^ permalink  raw  reply  [nested|flat] 9+ messages in thread


end of thread, other threads:[~2005-12-12 08:41 UTC | newest]

Thread overview: 9+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-12-07 11:14 PostgreSQL 8.1.0 RHEL / Debian incompatible packages Richard van den Berg <richard.vandenberg@trust-factory.com>
2005-12-07 11:34 ` Devrim GUNDUZ <devrim@commandprompt.com>
2005-12-07 13:06 ` Martijn van Oosterhout <kleptog@svana.org>
2005-12-07 13:15   ` Richard van den Berg <richard.vandenberg@trust-factory.com>
2005-12-07 14:22     ` Martijn van Oosterhout <kleptog@svana.org>
2005-12-07 13:54 ` Devrim GUNDUZ <devrim@commandprompt.com>
2005-12-07 14:48 ` Tom Lane <tgl@sss.pgh.pa.us>
2005-12-07 15:37   ` Stephen Frost <sfrost@snowman.net>
2005-12-12 08:41   ` Richard van den Berg <richard.vandenberg@trust-factory.com>

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