Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
2026-10-06 6bac54b555d27f1a85c1e4f011a6e7bd9111b0d0
src/include/catalog/pg_opclass.dat
@@ -488,4 +488,79 @@
# no brin opclass for the geometric types except box
{ opcmethod => 'btree', opcname => 'vector_ops',
  opcfamily => 'btree/vector_ops', opcintype => 'vector',
  opcdefault => 't', opckeytype => '0' },
{ opcmethod => 'ivfflat', opcname => 'vector_l2_ops',
  opcfamily => 'ivfflat/vector_l2_ops', opcintype => 'vector',
  opcdefault => 't', opckeytype => '0' },
{ opcmethod => 'ivfflat', opcname => 'vector_ip_ops',
  opcfamily => 'ivfflat/vector_ip_ops', opcintype => 'vector',
  opcdefault => 'f', opckeytype => '0' },
{ opcmethod => 'ivfflat', opcname => 'vector_cosine_ops',
  opcfamily => 'ivfflat/vector_cosine_ops', opcintype => 'vector',
  opcdefault => 'f', opckeytype => '0' },
{ opcmethod => 'hnsw', opcname => 'vector_l2_ops',
  opcfamily => 'hnsw/vector_l2_ops', opcintype => 'vector',
  opcdefault => 'f', opckeytype => '0' },
{ opcmethod => 'hnsw', opcname => 'vector_ip_ops',
  opcfamily => 'hnsw/vector_ip_ops', opcintype => 'vector',
  opcdefault => 'f', opckeytype => '0' },
{ opcmethod => 'hnsw', opcname => 'vector_cosine_ops',
  opcfamily => 'hnsw/vector_cosine_ops', opcintype => 'vector',
  opcdefault => 'f', opckeytype => '0' },
{ opcmethod => 'hnsw', opcname => 'vector_l1_ops',
  opcfamily => 'hnsw/vector_l1_ops', opcintype => 'vector',
  opcdefault => 'f', opckeytype => '0' },
{ opcmethod => 'btree', opcname => 'halfvec_ops',
  opcfamily => 'btree/halfvec_ops', opcintype => 'halfvec',
  opcdefault => 't', opckeytype => '0' },
{ opcmethod => 'ivfflat', opcname => 'halfvec_l2_ops',
  opcfamily => 'ivfflat/halfvec_l2_ops', opcintype => 'halfvec',
  opcdefault => 'f', opckeytype => '0' },
{ opcmethod => 'ivfflat', opcname => 'halfvec_ip_ops',
  opcfamily => 'ivfflat/halfvec_ip_ops', opcintype => 'halfvec',
  opcdefault => 'f', opckeytype => '0' },
{ opcmethod => 'ivfflat', opcname => 'halfvec_cosine_ops',
  opcfamily => 'ivfflat/halfvec_cosine_ops', opcintype => 'halfvec',
  opcdefault => 'f', opckeytype => '0' },
{ opcmethod => 'hnsw', opcname => 'halfvec_l2_ops',
  opcfamily => 'hnsw/halfvec_l2_ops', opcintype => 'halfvec',
  opcdefault => 'f', opckeytype => '0' },
{ opcmethod => 'hnsw', opcname => 'halfvec_ip_ops',
  opcfamily => 'hnsw/halfvec_ip_ops', opcintype => 'halfvec',
  opcdefault => 'f', opckeytype => '0' },
{ opcmethod => 'hnsw', opcname => 'halfvec_cosine_ops',
  opcfamily => 'hnsw/halfvec_cosine_ops', opcintype => 'halfvec',
  opcdefault => 'f', opckeytype => '0' },
{ opcmethod => 'hnsw', opcname => 'halfvec_l1_ops',
  opcfamily => 'hnsw/halfvec_l1_ops', opcintype => 'halfvec',
  opcdefault => 'f', opckeytype => '0' },
{ opcmethod => 'ivfflat', opcname => 'bit_hamming_ops',
  opcfamily => 'ivfflat/bit_hamming_ops', opcintype => 'bit',
  opcdefault => 'f', opckeytype => '0' },
{ opcmethod => 'hnsw', opcname => 'bit_hamming_ops',
  opcfamily => 'hnsw/bit_hamming_ops', opcintype => 'bit',
  opcdefault => 'f', opckeytype => '0' },
{ opcmethod => 'hnsw', opcname => 'bit_jaccard_ops',
  opcfamily => 'hnsw/bit_jaccard_ops', opcintype => 'bit',
  opcdefault => 'f', opckeytype => '0' },
{ opcmethod => 'btree', opcname => 'sparsevec_ops',
  opcfamily => 'btree/sparsevec_ops', opcintype => 'sparsevec',
  opcdefault => 't', opckeytype => '0' },
{ opcmethod => 'hnsw', opcname => 'sparsevec_l2_ops',
  opcfamily => 'hnsw/sparsevec_l2_ops', opcintype => 'sparsevec',
  opcdefault => 'f', opckeytype => '0' },
{ opcmethod => 'hnsw', opcname => 'sparsevec_ip_ops',
  opcfamily => 'hnsw/sparsevec_ip_ops', opcintype => 'sparsevec',
  opcdefault => 'f', opckeytype => '0' },
{ opcmethod => 'hnsw', opcname => 'sparsevec_cosine_ops',
  opcfamily => 'hnsw/sparsevec_cosine_ops', opcintype => 'sparsevec',
  opcdefault => 'f', opckeytype => '0' },
{ opcmethod => 'hnsw', opcname => 'sparsevec_l1_ops',
  opcfamily => 'hnsw/sparsevec_l1_ops', opcintype => 'sparsevec',
  opcdefault => 'f', opckeytype => '0' },
]