model-writtenrun 9239 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Gottfried reported that using a custom operator class as a range type's subtype_opclass caused pg_dump to emit its operator too late, breaking both plain-text and custom-format restores, and supplied a reproducer in #1.
- Tom Lane explained that pg_dump ignored dependencies belonging to pg_amop entries, allowing the range type's dependency to move the operator class ahead of its operator; he initially considered making pg_amop and pg_amproc entries full DumpableObjects but worried about overhead in #2.
- Tom Lane instead posted a smaller fix in #3 that translates member dependencies into dependencies of their parent operator family, excluding internal and self-dependencies to avoid cycles and simplifying back-patching.
- The patch from #3 landed with unchanged implementation and an added dump-order regression test as 07b39083c2.
- The thread ends with the patch submission in #3, with no subsequent review or testing replies; 07b39083c2 records back-patching to all supported branches and adding the regression test only in HEAD and version 12.