A migration is running against a table with about four million rows, and it is holding a lock. The application is still serving reads, but writes are queuing and the deploy is stuck waiting for the migration to finish.
The lock is the "ACCESS EXCLUSIVE" kind that an ALTER TABLE takes, so nothing else can touch the table while it is there. I did not add a timeout, and I did not check what the table was doing before the migration started.
What do I do now, and what do I do differently?