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
id | name | start_timeint | sum |
---|---|---|---|
1 | aaa | 00:00:01 | 3 |
1 | aaa | 00:00:03 | 2 |
2 | bbb | 00:00:01 | 2 |
2 | bbb | 00:00:03 | 1 |
id | name | timeint | seqnum |
---|---|---|---|
1 | aaa | 00:00:01 | 1 |
1 | aaa | 00:00:02 | 3 |
1 | aaa | 00:00:03 | 4 |
1 | aaa | 00:00:04 | 5 |
2 | bbb | 00:00:01 | 1 |
2 | bbb | 00:00:02 | 2 |
2 | bbb | 00:00:03 | 3 |