model-writtenrun 1863 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Antoine Violin reported that dropping a temporary table incorrectly yielded is_temporary=false for its column defaults in #1, then supplied a helper-based fix in #2, identically resent in #3.
- Tom Lane endorsed looking up the owning table's namespace but requested clearer naming and documentation, moving the supported-class check into the helper, and explicit schema/default/generic branches to avoid fragile assumptions in #4.
- Tom incorporated those changes and added regression coverage when committing #3 as 451373dc5c; backpatching stopped at PostgreSQL 15 because older releases lacked GetAttrDefaultColumnAddress().
- After the initial commit, Sergey Shinderuk's testing found that schemas lost object_name and defaults incorrectly acquired their table's name in #5; he proposed retaining schema_name while leaving object_name null, like table constraints, in #6.
- Tom supplied the follow-up patch in #7, restoring schema names, clearing default object names, fixing temporary-status reporting for triggers and policies, and expanding tests to inspect stable output fields; he considered broader ObjectProperty infrastructure changes but saw little code-saving benefit.
- The follow-up landed as 33e49ee014 from #7, with only branch adaptations and backpatches through PostgreSQL 15.
- Both fixes had landed by the final message, but Sergey identified remaining inconsistencies between pg_temp aliases and physical temporary-schema names for schemas and functions in #8, offering a later patch if desired; those questions remained unresolved in this thread.