Corey Huinker <corey.huin...@gmail.com> writes: > Sadly, that attnum isn't available in pg_stats, so we'd have to reintroduce > the joins to pg_namespace and pg_class to get at pg_attribute, at least for > indexes.
This argument seems to be made still from the mindset that you are going to form a query that produces exactly what needs to be dumped, without any additional processing. pg_dump has all that info at hand; there is no need to re-query the server for it. regards, tom lane