AWS RDS Postgresql query locked in Lock:Relation when not using super user

9

Hi! I run migrations (add columns, add tables, change restrictions) using prisma migrations in my CI/CD flow. I used to run using a superUser and everything were working well. Due to security reasons we changed to a non super user to handle this migrations. Since this change, sometimes when we run migrations and the DB is being used by services, the migration query never finishes and the db stops working, and the performance insights says that there is a Lock:Relation happening. We never experienced this before, so I am 99% sure that this is happening because of the user change.

Anyone has any idea why this is happening and How to resolve?

One of the failed queries:

ALTER TABLE "Crawlers" 
ADD COLUMN "clusterOptions" JSONB;
질문됨 2달 전99회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인