This is like 4 years old, but I’m braver now and ready to share stuff with this community. I’ve been a lurker for a while.
I made this tool - it’s kind of like “explain” but it tells you about what locks would be required by the query.
I was making it as part of a larger tool that would try to prevent deadlocks during migrations at my last company, I never finished it.
I’m often worrying about locks in migrations that could be long running, so executing the query to figure out the locks defeats the purpose. Or at least I need to know to use a test DB.