From f9a0392e1cf36179c984f655a6589734b8dd7468 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sat, 6 Mar 2021 19:25:45 +0100 Subject: Add bit_xor aggregate function This can be used as a checksum for unordered sets. bit_and and bit_or already exist. Author: Alexey Bashtanov Reviewed-by: Ibrar Ahmed Discussion: https://www.postgresql.org/message-id/flat/9d4582ae-ecfc-3a13-2238-6ab5a37c1f41@imap.cc --- doc/src/sgml/func.sgml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'doc/src') diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index fee05619612..ece09699ef8 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -19224,6 +19224,33 @@ SELECT NULLIF(value, '(none)') ... Yes + + + + bit_xor + + bit_xor ( smallint ) + smallint + + + bit_xor ( integer ) + integer + + + bit_xor ( bigint ) + bigint + + + bit_xor ( bit ) + bit + + + Computes the bitwise exclusive OR of all non-null input values. + Can be useful as a checksum for an unordered set of values. + + Yes + + -- cgit v1.2.3