A
Size: a a a
A
Y
Y
A
СА
A
A
Y
A
Y
A
A
СА
SG
СА
EXPLAIN SELECT * FROM table WHERE name='Васиссуалий' LIMIT 10
Limit (cost=0.57..39.21 rows=10 width=110)
-> Index Scan using table_name_surname on table (cost=0.57..55887.03 rows=14463 width=110)
Index Cond: ((name)::text = 'Васиссуалий'::text)
EXPLAIN SELECT * FROM table WHERE name='Васиссуалий' ORDER BY id DESC LIMIT 10
Limit (cost=0.57..9487.58 rows=10 width=110)
-> Index Scan Backward using table_pkey on table (cost=0.57..13722019.11 rows=14464 width=110)
Filter: ((name)::text = 'Васиссуалий'::text)
ИМ
СА
СА
ИМ