Re: bytea bitwise logical operations implementation (xor / and / or / not)

From: Christian Rossow <christian(dot)rossow(at)gmail(dot)com>
To: PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Cc: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
Subject: Re: bytea bitwise logical operations implementation (xor / and / or / not)
Date: 2018-01-12 12:57:20
Message-ID: 8a4fd89a-ffe1-2e03-5313-78a582224c66@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Fabien,

> I think that the probability of getting these useful things into pg is
> alas small. In the mean time, you may package and register it as an
> extension?
I aimed to close the asymmetry between bit vector operations (they also
offer xor/and/etc.) and bytea operations. My code is more or less a 1:1
copy of the corresponding bit vector operations (in fact, just a tiny
bit easier, since bytea is byte-aligned, wheres bit vectors aren't).

I just wanted to dump the code here, given that Tom suggested (in 2006)
such an implementation might be a useful addition to bytea. But I won't
feel offended in any way if the code won't be merged.

Cheers,
Christian

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Arthur Zakirov 2018-01-12 12:58:49 Re: [HACKERS] Bug in to_timestamp().
Previous Message Konstantin Knizhnik 2018-01-12 12:53:11 Re: [HACKERS] Cached plans and statement generalization