Re: Can we get sha* function over text, that could be used in index?
Peter Eisentraut <peter@eisentraut.org>
From: Peter Eisentraut <peter@eisentraut.org>
To: depesz@depesz.com,
pgsql-general mailing list <pgsql-general@postgresql.org>
Date: 2026-02-19T14:48:33Z
Lists: pgsql-general
On 18.02.26 15:58, hubert depesz lubaczewski wrote: > And while I kinda undestand, create-conversion, server-encoding, I don't > really*grok* why we can't have immutable conversion to bytea. And/or > versions of sha* functions that simply work on text. Hash functions fundamentally work on a sequence of bytes, so bytea is the right type. The encoding of text into bytes is complicated, so it seems better if you handle that yourself depending on the local requirements.