Re: [PATCH] Add crc32(text) & crc32(bytea)

Aleksander Alekseev <aleksander@timescale.com>

From: Aleksander Alekseev <aleksander@timescale.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Nathan Bossart <nathandbossart@gmail.com>
Date: 2024-07-26T09:01:40Z
Lists: pgsql-hackers
Hi,

> This sounds generally reasonable to me, especially given the apparent
> demand.  Should we also introduce crc32c() while we're at it?

Might be a good idea. However I didn't see a demand for crc32c() SQL
function yet. Also I'm not sure whether the best interface for it
would be crc32c() or crc32(x, version='c') or perhaps crc32(x,
polinomial=...). I propose keeping the scope small this time.

-- 
Best regards,
Aleksander Alekseev



Commits

  1. Add user-callable CRC functions.

  2. Add user-callable SHA-2 functions