From 6bac54b555d27f1a85c1e4f011a6e7bd9111b0d0 Mon Sep 17 00:00:00 2001
From: rudb <office@database.ru>
Date: Tue, 06 Oct 2026 02:35:45 +0000
Subject: [PATCH] СУБД RuDB - релиз 3

---
 src/include/catalog/pg_amop.dat |  115 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 115 insertions(+), 0 deletions(-)

diff --git a/src/include/catalog/pg_amop.dat b/src/include/catalog/pg_amop.dat
index 2a693cf..72d6d60 100644
--- a/src/include/catalog/pg_amop.dat
+++ b/src/include/catalog/pg_amop.dat
@@ -3227,4 +3227,119 @@
   amoprighttype => 'point', amopstrategy => '7', amopopr => '@>(box,point)',
   amopmethod => 'brin' },
 
+# vector_ops
+{ amopfamily => 'btree/vector_ops', amoplefttype => 'vector',
+  amoprighttype => 'vector', amopstrategy => '1', amopopr => '<(vector,vector)',
+  amopmethod => 'btree' },
+{ amopfamily => 'btree/vector_ops', amoplefttype => 'vector',
+  amoprighttype => 'vector', amopstrategy => '2', amopopr => '<=(vector,vector)',
+  amopmethod => 'btree' },
+{ amopfamily => 'btree/vector_ops', amoplefttype => 'vector',
+  amoprighttype => 'vector', amopstrategy => '3', amopopr => '=(vector,vector)',
+  amopmethod => 'btree' },
+{ amopfamily => 'btree/vector_ops', amoplefttype => 'vector',
+  amoprighttype => 'vector', amopstrategy => '4', amopopr => '>=(vector,vector)',
+  amopmethod => 'btree' },
+{ amopfamily => 'btree/vector_ops', amoplefttype => 'vector',
+  amoprighttype => 'vector', amopstrategy => '5', amopopr => '>(vector,vector)',
+  amopmethod => 'btree' },
+{ amopfamily => 'ivfflat/vector_l2_ops', amoplefttype => 'vector',
+  amoprighttype => 'vector', amopstrategy => '1', amopopr => '<->(vector,vector)',
+  amopmethod => 'ivfflat', amoppurpose => 'o', amopsortfamily => 'btree/float_ops' },
+{ amopfamily => 'ivfflat/vector_ip_ops', amoplefttype => 'vector',
+  amoprighttype => 'vector', amopstrategy => '1', amopopr => '<#>(vector,vector)',
+  amopmethod => 'ivfflat', amoppurpose => 'o', amopsortfamily => 'btree/float_ops' },
+{ amopfamily => 'ivfflat/vector_cosine_ops', amoplefttype => 'vector',
+  amoprighttype => 'vector', amopstrategy => '1', amopopr => '<=>(vector,vector)',
+  amopmethod => 'ivfflat', amoppurpose => 'o', amopsortfamily => 'btree/float_ops' },
+{ amopfamily => 'hnsw/vector_l2_ops', amoplefttype => 'vector',
+  amoprighttype => 'vector', amopstrategy => '1', amopopr => '<->(vector,vector)',
+  amopmethod => 'hnsw', amoppurpose => 'o', amopsortfamily => 'btree/float_ops' },
+{ amopfamily => 'hnsw/vector_ip_ops', amoplefttype => 'vector',
+  amoprighttype => 'vector', amopstrategy => '1', amopopr => '<#>(vector,vector)',
+  amopmethod => 'hnsw', amoppurpose => 'o', amopsortfamily => 'btree/float_ops' },
+{ amopfamily => 'hnsw/vector_cosine_ops', amoplefttype => 'vector',
+  amoprighttype => 'vector', amopstrategy => '1', amopopr => '<=>(vector,vector)',
+  amopmethod => 'hnsw', amoppurpose => 'o', amopsortfamily => 'btree/float_ops' },
+{ amopfamily => 'hnsw/vector_l1_ops', amoplefttype => 'vector',
+  amoprighttype => 'vector', amopstrategy => '1', amopopr => '<+>(vector,vector)',
+  amopmethod => 'hnsw', amoppurpose => 'o', amopsortfamily => 'btree/float_ops' },
+
+# halfvec_ops
+{ amopfamily => 'btree/halfvec_ops', amoplefttype => 'halfvec',
+  amoprighttype => 'halfvec', amopstrategy => '1', amopopr => '<(halfvec,halfvec)',
+  amopmethod => 'btree' },
+{ amopfamily => 'btree/halfvec_ops', amoplefttype => 'halfvec',
+  amoprighttype => 'halfvec', amopstrategy => '2', amopopr => '<=(halfvec,halfvec)',
+  amopmethod => 'btree' },
+{ amopfamily => 'btree/halfvec_ops', amoplefttype => 'halfvec',
+  amoprighttype => 'halfvec', amopstrategy => '3', amopopr => '=(halfvec,halfvec)',
+  amopmethod => 'btree' },
+{ amopfamily => 'btree/halfvec_ops', amoplefttype => 'halfvec',
+  amoprighttype => 'halfvec', amopstrategy => '4', amopopr => '>=(halfvec,halfvec)',
+  amopmethod => 'btree' },
+{ amopfamily => 'btree/halfvec_ops', amoplefttype => 'halfvec',
+  amoprighttype => 'halfvec', amopstrategy => '5', amopopr => '>(halfvec,halfvec)',
+  amopmethod => 'btree' },
+{ amopfamily => 'ivfflat/halfvec_l2_ops', amoplefttype => 'halfvec',
+  amoprighttype => 'halfvec', amopstrategy => '1', amopopr => '<->(halfvec,halfvec)',
+  amopmethod => 'ivfflat', amoppurpose => 'o', amopsortfamily => 'btree/float_ops' },
+{ amopfamily => 'ivfflat/halfvec_ip_ops', amoplefttype => 'halfvec',
+  amoprighttype => 'halfvec', amopstrategy => '1', amopopr => '<#>(halfvec,halfvec)',
+  amopmethod => 'ivfflat', amoppurpose => 'o', amopsortfamily => 'btree/float_ops' },
+{ amopfamily => 'ivfflat/halfvec_cosine_ops', amoplefttype => 'halfvec',
+  amoprighttype => 'halfvec', amopstrategy => '1', amopopr => '<=>(halfvec,halfvec)',
+  amopmethod => 'ivfflat', amoppurpose => 'o', amopsortfamily => 'btree/float_ops' },
+{ amopfamily => 'hnsw/halfvec_l2_ops', amoplefttype => 'halfvec',
+  amoprighttype => 'halfvec', amopstrategy => '1', amopopr => '<->(halfvec,halfvec)',
+  amopmethod => 'hnsw', amoppurpose => 'o', amopsortfamily => 'btree/float_ops' },
+{ amopfamily => 'hnsw/halfvec_ip_ops', amoplefttype => 'halfvec',
+  amoprighttype => 'halfvec', amopstrategy => '1', amopopr => '<#>(halfvec,halfvec)',
+  amopmethod => 'hnsw', amoppurpose => 'o', amopsortfamily => 'btree/float_ops' },
+{ amopfamily => 'hnsw/halfvec_cosine_ops', amoplefttype => 'halfvec',
+  amoprighttype => 'halfvec', amopstrategy => '1', amopopr => '<=>(halfvec,halfvec)',
+  amopmethod => 'hnsw', amoppurpose => 'o', amopsortfamily => 'btree/float_ops' },
+{ amopfamily => 'hnsw/halfvec_l1_ops', amoplefttype => 'halfvec',
+  amoprighttype => 'halfvec', amopstrategy => '1', amopopr => '<+>(halfvec,halfvec)',
+  amopmethod => 'hnsw', amoppurpose => 'o', amopsortfamily => 'btree/float_ops' },
+
+# bit ops
+{ amopfamily => 'ivfflat/bit_hamming_ops', amoplefttype => 'bit',
+  amoprighttype => 'bit', amopstrategy => '1', amopopr => '<~>(bit,bit)',
+  amopmethod => 'ivfflat', amoppurpose => 'o', amopsortfamily => 'btree/float_ops' },
+{ amopfamily => 'hnsw/bit_hamming_ops', amoplefttype => 'bit',
+  amoprighttype => 'bit', amopstrategy => '1', amopopr => '<~>(bit,bit)',
+  amopmethod => 'hnsw', amoppurpose => 'o', amopsortfamily => 'btree/float_ops' },
+{ amopfamily => 'hnsw/bit_jaccard_ops', amoplefttype => 'bit',
+  amoprighttype => 'bit', amopstrategy => '1', amopopr => '<%>(bit,bit)',
+  amopmethod => 'hnsw', amoppurpose => 'o', amopsortfamily => 'btree/float_ops' },
+
+# sparsevec opts
+{ amopfamily => 'btree/sparsevec_ops', amoplefttype => 'sparsevec',
+  amoprighttype => 'sparsevec', amopstrategy => '1', amopopr => '<(sparsevec,sparsevec)',
+  amopmethod => 'btree' },
+{ amopfamily => 'btree/sparsevec_ops', amoplefttype => 'sparsevec',
+  amoprighttype => 'sparsevec', amopstrategy => '2', amopopr => '<=(sparsevec,sparsevec)',
+  amopmethod => 'btree' },
+{ amopfamily => 'btree/sparsevec_ops', amoplefttype => 'sparsevec',
+  amoprighttype => 'sparsevec', amopstrategy => '3', amopopr => '=(sparsevec,sparsevec)',
+  amopmethod => 'btree' },
+{ amopfamily => 'btree/sparsevec_ops', amoplefttype => 'sparsevec',
+  amoprighttype => 'sparsevec', amopstrategy => '4', amopopr => '>=(sparsevec,sparsevec)',
+  amopmethod => 'btree' },
+{ amopfamily => 'btree/sparsevec_ops', amoplefttype => 'sparsevec',
+  amoprighttype => 'sparsevec', amopstrategy => '5', amopopr => '>(sparsevec,sparsevec)',
+  amopmethod => 'btree' },
+{ amopfamily => 'hnsw/sparsevec_l2_ops', amoplefttype => 'sparsevec',
+  amoprighttype => 'sparsevec', amopstrategy => '1', amopopr => '<->(sparsevec,sparsevec)',
+  amopmethod => 'hnsw', amoppurpose => 'o', amopsortfamily => 'btree/float_ops' },
+{ amopfamily => 'hnsw/sparsevec_ip_ops', amoplefttype => 'sparsevec',
+  amoprighttype => 'sparsevec', amopstrategy => '1', amopopr => '<#>(sparsevec,sparsevec)',
+  amopmethod => 'hnsw', amoppurpose => 'o', amopsortfamily => 'btree/float_ops' },
+{ amopfamily => 'hnsw/sparsevec_cosine_ops', amoplefttype => 'sparsevec',
+  amoprighttype => 'sparsevec', amopstrategy => '1', amopopr => '<=>(sparsevec,sparsevec)',
+  amopmethod => 'hnsw', amoppurpose => 'o', amopsortfamily => 'btree/float_ops' },
+{ amopfamily => 'hnsw/sparsevec_l1_ops', amoplefttype => 'sparsevec',
+  amoprighttype => 'sparsevec', amopstrategy => '1', amopopr => '<+>(sparsevec,sparsevec)',
+  amopmethod => 'hnsw', amoppurpose => 'o', amopsortfamily => 'btree/float_ops' },
 ]

--
Gitblit v1.10.0