Hi, > I'm curious why we need to do this instead of only using the macros: > > INIT_TRADITIONAL_CRC32(crc); > COMP_TRADITIONAL_CRC32(crc, VARDATA_ANY(in), len); > FIN_TRADITIONAL_CRC32(crc); > > + * IDENTIFICATION > + * src/backend/utils/adt/hashfuncs.c > > Perhaps these would fit into src/backend/utils/hash/pg_crc.c?
Thanks, PFA patch v3. -- Best regards, Aleksander Alekseev
v3-0001-Add-crc32-bytea-crc32c-bytea.patch
Description: Binary data