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.7 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-10), 64-bit |
10 rows affected
s1_no | sstr |
---|---|
1 | 123456 |
3 | 400062 |
5 | 380024 |
6 | 400057 |
7 | 600017 |
8 | 110055 |
10 | null |
s1_no | sstr |
---|---|
1 | 123456 |
3 | 400062 |
5 | 380024 |
6 | 400057 |
7 | 600017 |
8 | 110055 |
s1_no | sstr | pg_typeof |
---|---|---|
1 | 123456 | text |
3 | 400062 | text |
5 | 380024 | text |
6 | 400057 | text |
7 | 600017 | text |
8 | 110055 | text |
10 | null | text |
s1_no | sstr | pg_typeof |
---|---|---|
1 | 123456 | integer |
3 | 400062 | integer |
5 | 380024 | integer |
6 | 400057 | integer |
7 | 600017 | integer |
8 | 110055 | integer |
10 | null | integer |