3 ms·You can create indexes on expressions, like mycustomfunction(a), in Postgres at least.by sk1pper 7y agoYou can create indexes on expressions, like mycustomfunction(a), in Postgres at least.