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 ROLE
CREATE TABLE
CREATE VIEW
GRANT
SELECT 0
GRANT
grantor | grantee | table_catalog | table_schema | table_name | column_name | privilege_type | is_grantable |
---|---|---|---|---|---|---|---|
postgres | alice | postgres | public | recent_sales_v | description | SELECT | NO |
postgres | alice | postgres | public | recent_sales_v | id | SELECT | NO |
SELECT 2
grantor | grantee | table_catalog | table_schema | table_name | column_name | privilege_type | is_grantable |
---|---|---|---|---|---|---|---|
postgres | alice | postgres | public | recent_sales_v | description | SELECT | NO |
postgres | alice | postgres | public | recent_sales_mv | description | SELECT | NO |
postgres | alice | postgres | public | recent_sales_mv | id | SELECT | NO |
postgres | alice | postgres | public | recent_sales_v | id | SELECT | NO |
SELECT 4