Limit  (cost=0.42..17.21 rows=50 width=85) (actual time=0.043..0.051 rows=50.00 loops=1)
  Buffers: shared hit=5
  ->  Index Scan using idx_messages_chat_created_id on messages  (cost=0.42..7474.82 rows=22260 width=85) (actual time=0.042..0.046 rows=50.00 loops=1)
        Index Cond: ((chat_id = '22222222-2222-4222-8222-222222222222'::uuid) AND (ROW(created_at, id) > ROW('2026-02-01 00:00:50.001+00'::timestamp with time zone, '849cff37-c885-4e43-a645-07c3b941a69e'::uuid)))
        Index Searches: 1
        Buffers: shared hit=5
Planning:
  Buffers: shared hit=111
Planning Time: 1.140 ms
Execution Time: 0.152 ms
