I'm new to bloom indexes. I'm referring https://habr.com/en/company/postgrespro/blog/452968/ link to learn about new indexes.
When I was trying to create bloom index on own test table, I got below error:
SQL Error [42704]: ERROR: data type bigint has no default operator class for access method "bloom"
Hint: You must specify an operator class for the index or define a default operator class for the data
type.
No doubt, because in my table I have a column where I'm using bigint datatype and the same column I'm including in my index creation.
To avoid that error, I tried to create my own class for bigint datatype. Like below:
CREATE OPERATOR CLASS bigint_ops
DEFAULT FOR TYPE int USING bloom AS
OPERATOR 1 =(bigint,bigint),
FUNCTION 1 hashbigint;
and I got below error:
SQL Error [42883]: ERROR: could not find a function named "hashbigint"
Any help to avoid this error will be much appreciated.