postgresql_16:9.6.7.3 Operator Class Interface
PostgreSQL 16 > Appendixes > Additional Supplied Modules and Extensions > bloom — bloom filter index access method > Operator Class Interface
An operator class for bloom indexes requires only a hash function for the indexed data type and an equality operator for searching. This example shows the operator class definition for the text data type:
CREATE OPERATOR CLASS text_ops
DEFAULT FOR TYPE text USING bloom AS
OPERATOR 1 =(text, text),
FUNCTION 1 hashtext(text);