Hi there, I was just wondering if anyone has some general advice for how to ensure a schema migration for an application has exclusivity during its run. This is to avoid silly things like, if someone leaves an application server running during migration the migration should be able to lock somehow to avoid any changes while it is running. I've taken a look at LOCK TABLE, which can lock a table obviously (and I can obviously lock _all_ tables to fake a LOCK DATABASE), but I'm wondering if someone has some opinion around just raising the transaction isolation level to achieve similar goals? Any lessons learnt and best practices would be much appreciated :-). ken. -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general