Problem with 64-bit Postgres - Mailing list pgsql-general

From Peter Alberer
Subject Problem with 64-bit Postgres
Date
Msg-id 200509151358.j8FDwI0a043372@obelix.wu-wien.ac.at
Whole thread Raw
Responses Re: Problem with 64-bit Postgres
Re: Problem with 64-bit Postgres
List pgsql-general
Hi,

i am having a problem with a test installation of postgres 8.0.3 on a 64-bit
power5 system. Let me say first that the system seems to work correctly when
compiled in 32-bit mode (which seems to be standard compile mode with gcc on
this installation).

I compiled postgres in 64-bit mode by adding the following switches in the
make file:
To the gcc lines:     -m64 -mcpu=power5 -mtune=power5
To ld lines:         -m elf64ppc

Compiling in 64-bit mode also seems to work, but there is an error when
trying to access the postmaster process:

Server starts:
[postgres@testxx pg803]$ bin/postmaster -D /opt/test/data
LOG:  could not send test message on socket for statistics collector:
Destination address required
LOG:  disabling statistics collector for lack of working socket
LOG:  database system was shut down at 2005-09-15 13:42:43 CEST
LOG:  checkpoint record is at 0/AB8AD8
LOG:  redo record is at 0/AB8AD8; undo record is at 0/0; shutdown TRUE
LOG:  next transaction ID: 544; next OID: 17230
LOG:  database system is ready

Client connects:
[root@testxx pg803]# bin/psql -U nsadmin -l
psql: server closed the connection unexpectedly
        This probably means the server terminated abnormally
        before or while processing the request.

Server says:
LOG:  setsockopt(TCP_NODELAY) failed: Operation not supported

Did anyone have a similar problem and can provide some help?

TIA, peter

Ps:

The system is using the following gcc config:
Reading specs from /usr/lib/gcc/ppc64-redhat-linux/3.4.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-java-awt=gtk
--host=ppc64-redhat-linux --build=ppc64-redhat-linux
--target=ppc64-redhat-linux --with-cpu=default32
Thread model: posix
gcc version 3.4.3 20050227 (Red Hat 3.4.3-22.1)


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: ERROR: type "temp_gc" already exists
Next
From: Steve Manes
Date:
Subject: Asychronous database replication