From: Alexey Prohorenko <green@usa.dp.ua>
To: pgsql-sql@postgresql.org
To: pgsql-general@postgresql.org
Subject: [LONGINT] Problem
Date: Thu, 25 Oct 2001 21:25:33 +0300
Message-ID: <20011025212533.A80805@usa.dp.ua> (raw)
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@usa.dp.ua when answering, cause
I am not sure does Majordomo subscribe me or not. :-)
--
green
[http://www.extrasy.net]
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: green@usa.dp.ua, pgsql-sql@postgresql.org
Subject: Re: [LONGINT] Problem
In-Reply-To: <20011025212533.A80805@usa.dp.ua>
References: <20011025212533.A80805@usa.dp.ua>
* 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