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?.
1 rows affected
1 rows affected
1 rows affected
1 rows affected
1 rows affected
1 rows affected
1 rows affected
1 rows affected
1 rows affected
id | datum | cola | colb | colc | cold |
---|---|---|---|---|---|
1 | 2018-01-01 | PLANTA | VENDORA | OPA | 1 |
2 | 2018-02-01 | PLANTA | VENDORA | OPA | 1 |
3 | 2018-03-01 | PLANTA | VENDORA | OPA | 1 |
4 | null | PLANTA | VENDORA | OPA | 1 |
5 | 2018-10-01 | PLANTA | VENDORA | OPA | 5 |
6 | 2018-10-01 | PLANTA | VENDORA | OPA | 10 |
7 | 2018-11-01 | PLANTA | VENDORB | OPA | 50 |
8 | 2018-10-01 | PLANTA | VENDORA | OPA | 10 |
9 | 2018-11-01 | PLANTA | VENDORA | OPB | 5 |
id | datum | cola | colb | colc | cold | ?column? |
---|---|---|---|---|---|---|
1 | 2018-01-01 | PLANTA | VENDORA | OPA | 1 | 4.1666666666666667 |
2 | 2018-02-01 | PLANTA | VENDORA | OPA | 1 | 4.1666666666666667 |
3 | 2018-03-01 | PLANTA | VENDORA | OPA | 1 | 4.1666666666666667 |
4 | null | PLANTA | VENDORA | OPA | 1 | 4.1666666666666667 |
5 | 2018-10-01 | PLANTA | VENDORA | OPA | 5 | 4.1666666666666667 |
6 | 2018-10-01 | PLANTA | VENDORA | OPA | 10 | 4.1666666666666667 |
8 | 2018-10-01 | PLANTA | VENDORA | OPA | 10 | 4.1666666666666667 |
9 | 2018-11-01 | PLANTA | VENDORA | OPB | 5 | 0.83333333333333333333 |
7 | 2018-11-01 | PLANTA | VENDORB | OPA | 50 | 8.3333333333333333 |