By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CREATE TABLE
CREATE INDEX
INSERT 0 5000
ANALYZE
| QUERY PLAN |
|---|
| Limit (actual rows=50 loops=1) |
| -> Index Only Scan using idx_post_created_on_id on post (actual rows=50 loops=1) |
| Index Cond: (ROW(created_on, id) < ROW('2019-10-02 21:00:00'::timestamp without time zone, 4951)) |
| Heap Fetches: 50 |
| Planning Time: 0.776 ms |
| Execution Time: 0.162 ms |
EXPLAIN
| QUERY PLAN |
|---|
| Limit (actual rows=50 loops=1) |
| -> Index Only Scan using idx_post_created_on_id on post (actual rows=50 loops=1) |
| Index Cond: (created_on <= '2019-10-02 21:00:00'::timestamp without time zone) |
| Filter: (ROW(created_on, (id)::numeric) < ROW('2019-10-02 21:00:00'::timestamp without time zone, 4951.0)) |
| Heap Fetches: 50 |
| Planning Time: 0.131 ms |
| Execution Time: 0.120 ms |
EXPLAIN
| QUERY PLAN |
|---|
| Limit (actual rows=50 loops=1) |
| -> Index Only Scan using idx_post_created_on_id on post (actual rows=50 loops=1) |
| Index Cond: (created_on <= '2019-10-02 21:00:00'::timestamp without time zone) |
| Filter: (ROW(created_on, (id)::numeric) < ROW('2019-10-02 21:00:00'::timestamp without time zone, '4951'::numeric)) |
| Heap Fetches: 50 |
| Planning Time: 0.074 ms |
| Execution Time: 0.053 ms |
EXPLAIN
| QUERY PLAN |
|---|
| Limit (actual rows=50 loops=1) |
| -> Index Only Scan using idx_post_created_on_id on post (actual rows=50 loops=1) |
| Index Cond: (created_on <= '2019-10-02 21:00:00'::timestamp without time zone) |
| Filter: (ROW(created_on, (id)::numeric) < ROW('2019-10-02 21:00:00'::timestamp without time zone, '4951'::numeric)) |
| Heap Fetches: 50 |
| Planning Time: 0.050 ms |
| Execution Time: 0.051 ms |
EXPLAIN
| QUERY PLAN |
|---|
| Limit (actual rows=50 loops=1) |
| -> Index Only Scan using idx_post_created_on_id on post (actual rows=50 loops=1) |
| Index Cond: (ROW(created_on, id) < ROW('2019-10-02 21:00:00'::timestamp without time zone, '4951'::bigint)) |
| Heap Fetches: 50 |
| Planning Time: 0.045 ms |
| Execution Time: 0.056 ms |
EXPLAIN