# PostgreSQL DB Lock while using Liquibase

**URL:** <https://forum.liquibase.org/t/postgresql-db-lock-while-using-liquibase/6293>\
**Category:** General Discussion\
**Created:** [December 26, 2021, 7:21pm UTC](https://forum.liquibase.org/t/postgresql-db-lock-while-using-liquibase/6293 "2021-12-26T19:21:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoheb.shaik7](https://avatars.discourse-cdn.com/v4/letter/z/53a042/32.png) [@zoheb.shaik7](https://forum.liquibase.org/u/zoheb.shaik7)\
**Post date:** [December 26, 2021, 7:21pm UTC](https://forum.liquibase.org/t/postgresql-db-lock-while-using-liquibase/6293/1 "2021-12-26T19:21:44Z")

</div>

Hi Team,

We are multiple microservices(With Liquibase) running on Azure AKS cluster as a pod.

Frequently we have noticed DB locks and pods will crash as it will fail in health checks.

Is there a way to overcome this scenario as it is impacting a lot. We have to manually unlock DB table, so that pod will start.

In one of the logs, I’ve noticed below error

I believe, it needs to be handled from Application(Springboot).

 ![image](https://us1.discourse-cdn.com/flex020/uploads/liquibase1/original/1X/e8a948acff36dd97488271ad83544bfd62ebe49d.jpeg)

---

<div class="post-metadata">

**Author:** ![MikeOlivas](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.liquibase.org/mikeolivas/32/183_2.png) [@MikeOlivas](https://forum.liquibase.org/u/MikeOlivas)\
**Post date:** [February 2, 2022, 2:33pm UTC](https://forum.liquibase.org/t/postgresql-db-lock-while-using-liquibase/6293/2 "2022-02-02T14:33:57Z")

</div>

HI @zoheb.shaik7 Thanks for joining the community. Here is a blog that should help you if you are still having this issue. (Init Containers)

> **[Using Liquibase in Kubernetes | Liquibase.com Blog](https://www.liquibase.com/blog/using-liquibase-in-kubernetes)**
>
> Learn the trick to using Liquibase in Kubernetes: Init containers! Sidestep Liquibase locks and get a better fit into the infrastructure Kubernetes provides.
