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 11.13 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.4.1 20200928 (Red Hat 8.4.1-1), 64-bit |
10 rows affected
officer_defined_ethnicity | Sas for ethnicity | Arrest rate | Most frequent object of search |
---|---|---|---|
ethnicity2 | 3 | 66.6666666666667 | Stolen goods |
ethnicity3 | 2 | 100 | Fireworks |
ethnicity1 | 5 | 60 | Firearms |
ethnicity3 | 2 | 100 | Firearms |
ethnicity1 | 5 | 60 | Cat |
ethnicity1 | 5 | 60 | Dog |
ethnicity2 | 3 | 66.6666666666667 | Firearms |
ethnicity1 | 5 | 60 | Psychoactive substances |
ethnicity1 | 5 | 60 | Fireworks |
officer_defined_ethnicity | object_of_search | n | rn |
---|---|---|---|
ethnicity1 | Cat | 1 | 1 |
ethnicity2 | Stolen goods | 2 | 1 |
ethnicity3 | Fireworks | 1 | 1 |