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 FUNCTION
ERROR: SELECT bar, baz FROM u111.foo UNION ALL SELECT bar, baz FROM u222.foo UNION ALL SELECT bar, baz FROM u333.foo CONTEXT: PL/pgSQL function foo(text[]) line 3 at RAISE