  Limit  (cost=0.29..77.21 rows=50 width=64) (actual time=0.284..0.443 rows=50 loops=1)
   Buffers: shared hit=1 read=3
   ->  Index Scan using messages_chat_created_id_idx on messages
         Index Cond: ((chat_id = 'aa29af3d-b946-4358-b7e6-eb6aedaf1ee0'::uuid) AND (ROW(created_at, id) > ROW('1970-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))
         Buffers: shared hit=1 read=3
 Planning Time: 0.762 ms
 Execution Time: 0.496 ms