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?.
version |
---|
PostgreSQL 13.4 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.4.1 20200928 (Red Hat 8.4.1-1), 64-bit |
7 rows affected
tid | order_view | name |
---|---|---|
1 | 1 | Initial- 01 |
2 | 2 | Initial- 02 |
3 | 3 | Initial- 03 |
4 | 4 | Initial- 04 |
5 | 5 | Initial- 05 |
6 | 6 | Initial- 06 |
7 | 7 | Initial- 07 |
1 rows affected
tid | order_view | name |
---|---|---|
1 | 1 | Initial- 01 |
2 | 2 | Initial- 02 |
3 | 3 | Initial- 03 |
8 | 4 | insert new 4 |
4 | 5 | Initial- 04 |
5 | 6 | Initial- 05 |
6 | 7 | Initial- 06 |
7 | 8 | Initial- 07 |
tid | order_view | name |
---|---|---|
1 | 1 | Initial- 01 |
2 | 2 | Initial- 02 |
9 | 3 | Create new #3 |
3 | 4 | Initial- 03 |
8 | 5 | insert new 4 |
4 | 6 | Initial- 04 |
5 | 7 | Initial- 05 |
6 | 8 | Initial- 06 |
7 | 9 | Initial- 07 |
10 | 10 | Add to end of list |