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

2018-01-12 Thread Christian Rossow
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 o

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

2018-01-11 Thread Christian Rossow
so', 'bytea_not' LANGUAGE C STRICT; DROP FUNCTION IF EXISTS bytea_bitsset(bytea); CREATE FUNCTION bytea_bitsset(bytea) RETURNS integer AS 'bytea_bitops.so', 'bytea_bitsset' LANGUAGE C STRICT; /* bytea_bitops.c * * Adding bytea bit operation functions similar to var