Merge remote-tracking branch 'upstream/main' into merge-gramsrv-9106877

This commit is contained in:
onysd 2026-08-03 23:29:20 +03:00
commit ac6a50c5ff
697 changed files with 100880 additions and 8052 deletions

View file

@ -0,0 +1,6 @@
-- Active usernames are searched by peer type and a case-normalized prefix.
-- text_pattern_ops keeps the lookup indexable even when the database collation
-- cannot use a regular btree index for LIKE 'prefix%'.
CREATE INDEX peer_usernames_active_search_idx
ON public.peer_usernames (peer_type, username_lower text_pattern_ops, peer_id)
WHERE active;