I thought this code was great. Thank you for sharing. I made one modification, for each query I added a new column, TYPE, so I would know (without thinking about it) what differences I was looking at.
For example, for the table differences I added after the select
''table'' as TYPE,
for the indexes I added
''indexes'' as TYPE
etc.
This is not necessary but makes it quick for me to glance at the data and see where the difference are occurring.