Unix Technical Forum

Re: How to tell if 64 bit vs 32 bit engine?

This is a discussion on Re: How to tell if 64 bit vs 32 bit engine? within the Pgsql General forums, part of the PostgreSQL category; --> There is probably a better way of doing this, but if nothing else try this: PostgreSQL executables on Unix: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 07:20 AM
BRUSSER Michael
 
Posts: n/a
Default Re: How to tell if 64 bit vs 32 bit engine?

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
[mailtogsql-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


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 10:17 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