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
1 rows affected
1 rows affected
1 rows affected
1 rows affected
1 rows affected
14 rows affected
id | type | name | parent |
---|---|---|---|
1 | database | dev | null |
2 | database | stage | null |
3 | schema | StarWars | 1 |
4 | schema | Walle | 1 |
5 | schema | BigBangTheory | 2 |
6 | schema | Walle | 2 |
7 | schema | StarWars | 2 |
8 | schema | BigBangTheory | 1 |
9 | table | SomeTable1 | 8 |
10 | table | SomeTable2 | 8 |
11 | table | SomeTable3 | 8 |
12 | table | SomeTable1 | 5 |
13 | table | SomeTable2 | 5 |
14 | table | SomeTable3 | 5 |
15 | table | SpaceTableyyy | 3 |
16 | table | SpaceTablexxx | 3 |
17 | table | SpaceTablexxx | 7 |
18 | table | SpaceTableyyy | 7 |
19 | table | AnotherTable200 | 4 |
20 | table | AnotherTable100 | 4 |
21 | table | AnotherTable100 | 6 |
22 | table | AnotherTable200 | 6 |