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
INSERT 0 1
ALTER TABLE
ERROR: cannot alter type of a column used by a generated column DETAIL: Column "a" is used by generated column "b".
CREATE FUNCTION
CREATE TRIGGER
ERROR: cannot alter type of a column used in a trigger definition DETAIL: trigger test_trigger on table test depends on column "a"
CREATE VIEW
ERROR: cannot alter type of a column used by a view or rule DETAIL: rule _RETURN on view test_view depends on column "a"
ALTER TABLE
ERROR: operator does not exist: text >= integer HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
CREATE FUNCTION
ALTER TABLE