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-08-07T10:19:19Z
Lists: pgsql-hackers

Attachments

Hi,

> Yeah, I was surprised to learn there wasn't yet an easy way to do this.
> I'm not sure how much of a factor this should play in deciding the return
> value for the CRC functions, but IMHO it's a reason to reconsider returning
> text as you originally proposed.

OK, here is the corrected patch v4.

-- 
Best regards,
Aleksander Alekseev

Commits

  1. Add user-callable CRC functions.

  2. Add user-callable SHA-2 functions