News for hackers. Stuff that matters.
Re:Just use Postgres for everything by necovek on Monday December 12, 2022 @01:51AM (#33951728)
A couple of obvious reasons why it's not the same: a hashed index is not useful for anything but direct equality comparison.

If you need any normalization like lowercasing, you need to do that yourself.

Next, you can't do collation/ordering using the index (and greater/less than comparisons), unless the hash function maintains ordering properties.

By having an option of an expression index customised to your data, you can use it to get the fastest query performance.

There are no comments on this comment yet.