model-writtenrun 9029 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Hsu, John reported that REINDEX on a toast table could produce an unexpected-relkind error instead of an ownership error, and proposed mapping RELKIND_TOASTVALUE to OBJECT_TABLE in #1.
- Michael Paquier identified additional ALTER TABLE paths and questioned the object-type mapping in #2; Tom Lane argued for documented, non-failing relation-type lookup in #3, while the alternative of introducing OBJECT_RELATION raised infrastructure and overlapping-type concerns in #3 and #4.
- Michael Paquier supplied a revision with function documentation and regression tests for toast-table and toast-index permission errors in #5, retaining the specific toast mapping.
- Tom Lane broadened the fallback to return OBJECT_TABLE for any unrecognized relkind, revised the documentation, and moved object-type lookups into permission-error paths in alter.c while retaining Michael's tests in #6.
- Michael Paquier agreed with the revision in #7, and Tom Lane committed #6 unchanged as a30531c5c8, with backpatching to PostgreSQL 11; the push confirmation in #8 and acknowledgment in #9 closed the thread with no remaining patch work.