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?.
7 rows affected
id rnk c1 c2 c3 c4 c5
1 1 a1 b1 c1
2 1 a2 b2 c2 d2 e2
2 2 f2
3 1 a3 b3 c3 d3 e3
3 2 f3 g3 h3 i3 j3
4 1 a4
5 1 a5 b5 c5
id rnk c1 c2 c3 c4 c5
1 1 a1 b1 c1
2 1 a2 b2 c2 d2 e2
2 2 f2
3 1 a3 b3 c3 d3 e3
3 2 f3 g3 h3 i3 j3
4 1 a4
5 1 a5 b5 c5
id rnk c1 c2 c3 c4 c5
1 1 c1 b1 a1
2 1 e2 d2 c2 b2 a2
2 2 f2
3 1 e3 d3 c3 b3 a3
3 2 j3 i3 h3 g3 f3
4 1 a4
5 1 c5 b5 a5