On Thu, 12 Nov 2026 at 15:29, Kirill Reshke <[email protected]> wrote: > > > Another case > > begin; > create type tt AS (a int, b int); > prepare x as SELECT (i, 1)::tt FROM generate_series(1,1) i; > rollback ; > execute x; > --- ERROR: cache lookup failed for type 16487 > > found by looking into > https://git.postgresql.org/cgit/postgresql.git/commit/?id=0b0f5c5af11b868c15ae2f80010e351f04a6b2e5
Looks like typed constants/row expressions reference a user-def type without plan invalidation machinery. Attached uses record_plan_type_dependency to fix that -- Best regards, Kirill Reshke
v2-code-only.diff
Description: Binary data
