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?.
12 rows affected
churn_date | customer |
---|---|
2021-03-18 | user_02 |
2021-03-26 | user_03 |
churn_date | customer |
---|---|
2021-04-12 | user_04 |
2021-04-23 | user_06 |
month | customer | churn_date |
---|---|---|
2021-03-01 00:00:00+00 | user_02 | 2021-03-18 |
2021-03-01 00:00:00+00 | user_03 | 2021-03-26 |
2021-04-01 00:00:00+01 | user_04 | 2021-04-12 |
2021-04-01 00:00:00+01 | user_06 | 2021-04-23 |