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
id | serial | version | is_deleted |
---|---|---|---|
10 | AAAAAA | 2019-04-14 15:28:08 | 0 |
22 | AAAAAA | 2019-03-04 15:28:08 | 0 |
13 | AAAAAA | 2019-02-10 15:28:08 | 0 |
40 | BBBBBB | 2019-04-17 15:28:08 | 0 |
27 | BBBBBB | 2019-02-20 15:28:08 | 0 |
17 | CCCCCC | 2019-03-04 15:28:08 | 0 |
35 | CCCCCC | 2019-01-01 15:28:08 | 0 |
id | serial | version | is_deleted |
---|---|---|---|
10 | AAAAAA | 2019-04-14 15:28:08 | 0 |
22 | AAAAAA | 2019-03-04 15:28:08 | 1 |
13 | AAAAAA | 2019-02-10 15:28:08 | 1 |
40 | BBBBBB | 2019-04-17 15:28:08 | 0 |
27 | BBBBBB | 2019-02-20 15:28:08 | 1 |
17 | CCCCCC | 2019-03-04 15:28:08 | 0 |
35 | CCCCCC | 2019-01-01 15:28:08 | 1 |
7 rows affected
id | serial | version | is_deleted |
---|---|---|---|
10 | AAAAAA | 2019-04-14 15:28:08 | 0 |
13 | AAAAAA | 2019-02-10 15:28:08 | 1 |
17 | CCCCCC | 2019-03-04 15:28:08 | 0 |
22 | AAAAAA | 2019-03-04 15:28:08 | 1 |
27 | BBBBBB | 2019-02-20 15:28:08 | 1 |
35 | CCCCCC | 2019-01-01 15:28:08 | 1 |
40 | BBBBBB | 2019-04-17 15:28:08 | 0 |