Unix Technical Forum

64 or 32 postgres

This is a discussion on 64 or 32 postgres within the pgsql Admins forums, part of the PostgreSQL category; --> How to figure out whether the installed postgres version is 32 bit or 64bit ? We installed postgres801 from ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 01:36 AM
Subbiah, Stalin
 
Posts: n/a
Default 64 or 32 postgres

How to figure out whether the installed postgres version is 32 bit or
64bit ? We installed postgres801 from src on susu box with EMT64 bit
hardware. I assume since the hardware was 64 bit, postgres should have
compiled in 64 bit too, but then we ran into this error

FATAL: database files are incompatible with server
DETAIL: The database cluster was initialized without
HAVE_INT64_TIMESTAMP but the server was compiled with
HAVE_INT64_TIMESTAMP.
HINT: It looks like you need to recompile or initdb.

Any ideas ?

Thanks,
Stalin

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 01:36 AM
Matthew Wronkowski
 
Posts: n/a
Default Re: 64 or 32 postgres

On Fri, Mar 25, 2005 at 11:12AM -0800, I got a letter,
where Subbiah, Stalin told me:

> How to figure out whether the installed postgres version is 32 bit or
> 64bit ? We installed postgres801 from src on susu box with EMT64 bit
> hardware. I assume since the hardware was 64 bit, postgres should have
> compiled in 64 bit too, but then we ran into this error
>
> FATAL: database files are incompatible with server
> DETAIL: The database cluster was initialized without
> HAVE_INT64_TIMESTAMP but the server was compiled with
> HAVE_INT64_TIMESTAMP.
> HINT: It looks like you need to recompile or initdb.
>
> Any ideas ?
>
> Thanks,
> Stalin


Stalin,

Probably the easiest way to figure out if the server is 64-bit is to
run 'file postmaster' binary. However, the problem you are running into
is because postgresql was configured/compiled with

--enable-integer-datetimes enable 64-bit integer date/time support

Recompile without this flag.

--
Matthew Wronkowski, CCNP
Bioinformatics
Rochester Institute of Technology

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 01:36 AM
Tom Lane
 
Posts: n/a
Default Re: 64 or 32 postgres

"Subbiah, Stalin" <SSubbiah@netopia.com> writes:
> How to figure out whether the installed postgres version is 32 bit or
> 64bit ? We installed postgres801 from src on susu box with EMT64 bit
> hardware. I assume since the hardware was 64 bit, postgres should have
> compiled in 64 bit too, but then we ran into this error


> FATAL: database files are incompatible with server
> DETAIL: The database cluster was initialized without
> HAVE_INT64_TIMESTAMP but the server was compiled with
> HAVE_INT64_TIMESTAMP.
> HINT: It looks like you need to recompile or initdb.=20


That has nothing to do with 64/32 bit; you changed the
--enable-integer-datetimes config option.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:09 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com