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?.
version
PostgreSQL 13.4 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.4.1 20200928 (Red Hat 8.4.1-1), 64-bit
10 rows affected
time state total id
2020-04-09 green 1 1
2020-04-09 green 1 2
2020-04-09 green 1 3
2020-04-09 red 2 3
2020-04-09 yellow 1 3
2020-04-10 null 0 null
2020-04-11 null 0 null
2020-04-12 null 0 null
2020-04-13 red 1 1
2020-04-14 null 0 null
2020-04-15 null 0 null
2020-04-16 red 1 2
2020-04-16 yellow 1 1
2020-04-17 null 0 null
2020-04-18 null 0 null
2020-04-19 null 0 null
2020-04-20 null 0 null
2020-04-21 yellow 1 2
2020-04-22 null 0 null
2020-04-23 null 0 null
2020-04-24 null 0 null