I’m trying to alter a table column in Postgres, but the table has several AccessShare and AccessExclusive locks. How do I over come the locks?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Kick out the connections that cause the locks. Use pg_cancel_backend() or even pg_terminate_backend().
http://www.postgresql.org/docs/current/static/functions-admin.html