Re: What does # mean in plpgsql?

From: "Daniel Verite" <daniel(at)manitou-mail(dot)org>
To: "Stephen Cook" <sclists(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: What does # mean in plpgsql?
Date: 2010-08-12 15:00:55
Message-ID: 6f994288-1515-4072-aa10-ab161ce01af4@mm
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Stephen Cook wrote:

> What does the hash mark (#) mean in plpgsql?
>
> I saw it used in the pseudo_encrypt function @
> http://wiki.postgresql.org/wiki/Pseudo_encrypt, on the line:
>
> r2 := l1 # ((((1366.0 * r1 + 150889) % 714025) / 714025.0) * 32767)::int;
>
> My google-fu has failed me on this one, and I needs to know.

It's a bitwise exclusive OR (XOR)

Best regards,
--
Daniel
PostgreSQL-powered mail user agent and storage: http://www.manitou-mail.org

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2010-08-12 15:06:28 Re: What does # mean in plpgsql?
Previous Message Adrian Klaver 2010-08-12 14:59:54 Re: What does # mean in plpgsql?