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?.
9 rows affected
ind time prev_time new_index
1 09:00:00 null 0
2 09:02:00 09:00:00 0
3 09:03:00 09:02:00 0
4 09:05:00 09:03:00 0
5 09:11:00 09:05:00 1
6 09:12:00 09:11:00 1
7 09:15:00 09:12:00 1
8 09:22:00 09:15:00 2
9 09:33:00 09:22:00 3