Re: How to tell if 64 bit vs 32 bit engine? - Mailing list pgsql-general

From BRUSSER Michael
Subject Re: How to tell if 64 bit vs 32 bit engine?
Date
Msg-id 64A7F4285BB8D8449430A4A467A363334C14BE@CORP-CLT-EXB04.ds
Whole thread Raw
In response to How to tell if 64 bit vs 32 bit engine?  (Keaton Adams <kadams@mxlogic.com>)
List pgsql-general

There is probably a better way of doing this, but if nothing else try this:

 

PostgreSQL executables on Unix:

 

% file postmaster psql

postmaster:  ELF 32-bit MSB executable SPARC Version 1, dynamically linked, not stripped

psql:        ELF 32-bit MSB executable SPARC Version 1, dynamically linked, not stripped

 

 

Checking on the UNIX platform:

 

AIX:

getconf HARDWARE_BITMODE

getconf KERNEL_BITMODE

 

HP-UX:

getconf KERNEL_BITS   (returns 54 on a 64-bit machine, “Invalid argument” on a 32-bit machine)

 

Linux:

uname -a   (you’ll see i386 on a 32-bit machine,  x86_64 on a 64-bit machine)

 

Solaris:

isainfo –v  (post Solaris 2.7)

 

Hope it helps,

Michael.


From: pgsql-general-owner@postgresql.org [mailto:pgsql-general-owner@postgresql.org] On Behalf Of Keaton Adams
Sent: Friday, April 18, 2008 11:30 AM
To: pgsql-general@postgresql.org
Subject: [GENERAL] How to tell if 64 bit vs 32 bit engine?

 

I did search the archives for this.... But didn’t see a posting that directly answered the question.

How do I tell if the 32 bit version of PostgreSQL is running on a 64 bit machine, or if the 64 bit version was installed?  Is there a pg_ table that I can query or a config file I can look in to find out?  I found nothing in postgresql.conf that would indicate this.

Thanks,

Keaton

pgsql-general by date:

Previous
From: Chris Browne
Date:
Subject: Re: In the belly of the beast (MySQLCon)
Next
From: Tom Lane
Date:
Subject: Re: How to tell if 64 bit vs 32 bit engine?