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
customer | purshase_ts | amount |
---|---|---|
1 | 2018-12-18 16:00:00 | 2.00 |
1 | 2018-12-18 16:01:00 | 2.00 |
1 | 2018-12-18 16:02:00 | 1.00 |
1 | 2018-12-18 16:03:00 | 3.00 |
1 | 2018-12-18 16:04:00 | 5.00 |
1 | 2018-12-18 16:05:00 | 5.00 |
2 | 2018-12-18 16:00:00 | 2.00 |
2 | 2018-12-18 16:05:00 | 2.00 |
2 | 2018-12-18 16:10:00 | 4.00 |
customer |
---|
2 |
1 |
3 rows affected
customer | purshase_ts | amount |
---|---|---|
1 | 2018-12-18 16:00:00 | 2.00 |
1 | 2018-12-18 16:01:00 | 2.00 |
1 | 2018-12-18 16:02:00 | 1.00 |
1 | 2018-12-18 16:03:00 | 3.00 |
1 | 2018-12-18 16:04:00 | 5.00 |
1 | 2018-12-18 16:05:00 | 5.00 |
1 | 2018-12-18 16:06:00 | 3.00 |
1 | 2018-12-18 16:07:00 | 5.00 |
1 | 2018-12-18 16:08:00 | 5.00 |
2 | 2018-12-18 16:00:00 | 2.00 |
2 | 2018-12-18 16:05:00 | 2.00 |
2 | 2018-12-18 16:10:00 | 4.00 |
customer |
---|
1 |
customer |
---|
1 |