Limit  (cost=0.29..10.75 rows=101 width=77) (actual time=0.020..0.033 rows=101 loops=1)
  Buffers: shared hit=5
  ->  Index Scan using idx_messages_chat_id_created_at_id on messages  (cost=0.29..1036.64 rows=10002 width=77) (actual time=0.020..0.027 rows=101 loops=1)
        Index Cond: ((chat_id = 'e6a45519-82bb-44d1-9c50-60d6694ddbb6'::uuid) AND (ROW(created_at, id) > ROW('2020-01-01 00:00:00.010001+00'::timestamp with time zone, 'a6488848-3a03-4ccc-b300-5ff9d1cc2cd5'::uuid)))
        Buffers: shared hit=5
Planning:
  Buffers: shared hit=106
Planning Time: 0.490 ms
Execution Time: 0.079 ms
