add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Help with an interesting Postgres question: Why isn't an Index Only Scan used on a partition accessed via the parent table?.
6 rows affected
QUERY PLAN
Unique (cost=57.23..61.28 rows=200 width=72) (actual time=0.050..0.054 rows=3 loops=1)
  Buffers: shared hit=7
  -> Sort (cost=57.23..59.26 rows=810 width=72) (actual time=0.049..0.050 rows=6 loops=1)
        Sort Key: id, change_date DESC
        Sort Method: quicksort Memory: 25kB
        Buffers: shared hit=7
        -> Seq Scan on namechanges (cost=0.00..18.10 rows=810 width=72) (actual time=0.007..0.008 rows=6 loops=1)
              Buffers: shared hit=1
Planning Time: 0.155 ms
Execution Time: 0.118 ms