pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Achilleas Mantzios <achill@matrix.gatewaynet.com>
To: pgsql-admin@postgresql.org
Subject: Re: How to check running database is 32 bit
Date: Thu, 19 Jul 2007 11:50:20 +0300
Message-ID: <200707191150.20463.achill@matrix.gatewaynet.com> (raw)
In-Reply-To: <713822.93775.qm@web60513.mail.yahoo.com>
References: <713822.93775.qm@web60513.mail.yahoo.com>

Óôéò ÐÝìðôç 19 Éïýëéïò 2007 11:27, ï/ç nilesh khode Ýãñáøå:
> Hello,
>
> I have installed Postgresql 8.2.4 using Tarball on Suse Linux 10.1 (64
> Bit).
>
> I already had running Postgresql 64 bit under /var/lib/pgsql. I installed
> 32 bit 2nd Postgresql using Tarball under /usr/local/pgsql. I want to cross
> check whether it is 32 bit or 64 bit. So how shld I check the same?

In SELECT version(); it should say smth about the architecture.
If this does not help, write a C function that checks the sizeof(void *), and 
compile it in both systems (64,32), and then install it on both postgresql's.
Then at calling time, check its value, if its 4 then it is on a 32 bit system,
if it is 8 then it is on a 64 bit system.

>
> Thanks,
> Nilesh
>
>
>
>
>
>
>
> ___________________________________________________________________________
>_________ Get the free Yahoo! toolbar and rest assured with the added
> security of spyware protection.
> http://new.toolbar.yahoo.com/toolbar/features/norton/index.php
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend

-- 
Achilleas Mantzios



view thread (3+ messages)  latest in thread

Message-ID: <200707191150.20463.achill@matrix.gatewaynet.com>
Permalink:  ../200707191150.20463.achill@matrix.gatewaynet.com/
Also on:    postgresql.org/message-id/200707191150.20463.achill@matrix.gatewaynet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: achill@matrix.gatewaynet.com
  Subject: Re: How to check running database is 32 bit
  In-Reply-To: <200707191150.20463.achill@matrix.gatewaynet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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