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?.
15 rows affected
45 rows affected
45 rows affected
numbs | result |
---|---|
1 | 1 |
2 | 4 |
3 | 1 |
4 | 2 |
5 | 0 |
6 | 1 |
7 | 1 |
8 | 1 |
9 | 3 |
10 | 1 |
11 | 2 |
12 | 1 |
13 | 1 |
14 | 2 |
15 | 1 |
16 | 5 |
17 | 1 |
18 | 0 |
19 | 2 |
20 | 0 |
21 | 3 |
22 | 1 |
23 | 2 |
24 | 1 |
25 | 6 |
26 | 2 |
27 | 3 |
28 | 0 |
29 | 2 |
30 | 3 |
31 | 4 |
32 | 1 |
33 | 3 |
34 | 1 |
35 | 0 |
36 | 2 |
37 | 5 |
38 | 1 |
39 | 3 |
40 | 6 |
41 | 3 |
42 | 6 |
43 | 0 |
44 | 1 |
45 | 1 |