Re: Bitwise operators in SQL

From: Arcady Genkin <a(dot)genkin(at)utoronto(dot)ca>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Bitwise operators in SQL
Date: 2001-05-25 20:25:11
Message-ID: r1zeltdqiqg.fsf@gnu.cdf.toronto.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:

> Arcady Genkin writes:
>
> > But the problem is that there are no
> > bitwise operators among Postgres's supported operators. So, I cannot
> > write something like
> >
> > select name from pages where access&2>0;
> >
> > Is there a standard way to approach this kind of problem?
>
> Upgrading.

Indeed, thanks. I was reading the docs for 7.0, and didn't notice
that 7.1 has bitwise operators.

Thanks a lot,
--
Arcady Genkin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Boes 2001-05-25 21:02:28 Re: pl-perl setup?
Previous Message Tom Lane 2001-05-25 20:10:07 Re: Trouble with strange OUTER JOIN syntax