[LONGINT] Problem

From: Alexey Prohorenko <green(at)usa(dot)dp(dot)ua>
To: pgsql-sql(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: [LONGINT] Problem
Date: 2001-10-25 18:25:33
Message-ID: 20011025212533.A80805@usa.dp.ua
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

Hi, Guys,

I am new to PostgreSQL -- (I am migrating from MySQL), so I have
some, may be "stupid", but still interesting questions.
Interesting for me. :-)

In MySQL there was type called INT UNSIGNED, where I used
to keep values from 1 to 4294967295 without any problems.
1 is '00000000000000000000000000000001' in binary, and
4294967295 is '11111111111111111111111111111111'.

I also was able to do f.e. 'SELECT xxx WHERE (xxx & 2147483648)'
and get everything I want.
2147483648 is '10000000000000000000000000000000' in binary.

Nevertheless, with PostgreSQL I have troubles. I didn't find
any type which will help me to do everything above mentioned.

May be someone of you was in the same situation, or has enough
knowledge to help me with that?

I'll be very gladfull for any answer,
Looking forward them.

Thanks.

P.S. If possible -- do CC: green(at)usa(dot)dp(dot)ua when answering, cause
I am not sure does Majordomo subscribe me or not. :-)

--
green
[http://www.extrasy.net]

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Welty 2001-10-25 18:37:36 Re: Adding dates in plpgsql
Previous Message Barry Lind 2001-10-25 17:31:23 Re: Code Fixes

Browse pgsql-sql by date

  From Date Subject
Next Message Alexey Prohorenko 2001-10-25 20:09:32 autoincrement
Previous Message Haller Christoph 2001-10-25 17:07:32 Re: Lock full database