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?.
CREATE TABLE
CREATE TABLE
INSERT 0 4
INSERT 0 3
ob_id | obname | antragsteller_vorname | antragsteller_name | zusteller | empfaenger | kostentraeger |
---|---|---|---|---|---|---|
1 | Objekt eins | Dent | Dent | Beeblebrox | Prefect | McMillan |
2 | Objekt zwei | Beeblebrox | Beeblebrox | null | null | null |
3 | Objekt drei | Prefect | Prefect | null | Beeblebrox | Dent |
SELECT 3
ob_id | obname | antragsteller | zusteller | empfaenger | kostentraeger |
---|---|---|---|---|---|
1 | Objekt eins | Arthur Dent | Zaphod Beeblebrox | Ford Prefect | Tricia McMillan |
2 | Objekt zwei | Zaphod Beeblebrox | |||
3 | Objekt drei | Ford Prefect | Zaphod Beeblebrox | Arthur Dent |
SELECT 3