Limit (cost=0.42..64.91 rows=51 width=267) (actual time=0.032..0.059 rows=51 loops=1) Buffers: shared hit=11 -> Index Scan using messages_chat_created_id_idx on messages (cost=0.42..38137.55 rows=30161 width=267) (actual time=0.030..0.054 rows=51 loops=1) Index Cond: ((chat_id = '43815b30-3214-43ab-907b-8302428adf62'::uuid) AND (ROW(created_at, id) > ROW('2026-09-14 15:04:07.432+00'::timestamp with time zone, 'b4df760e-4412-48fc-90cc-814d6b6c9617'::uuid))) Buffers: shared hit=11 Planning: Buffers: shared hit=144 Planning Time: 1.388 ms Execution Time: 0.107 ms