0

I am having a scenario where we close the postgres connection unexpectedly that is the jetty server which is using the connection pool. So in our scenario we are killing the jetty server issuing Kill -9 so connection pool is not closed properly , so my question is that will it going to affect the postgres database, can it cause the postgres corruption. Or all the Connections will be closed automatically and the running transactions will be rolled back without affecting the database.

4

1 回答 1

1

任何未提交的事务都会在您断开连接时导致隐式回滚。这永远不会导致数据库损坏,回滚永远不会导致数据库损坏。

使用kill -9会提出问题,但是当您终止连接时它不会损坏您的数据库。

于 2012-07-23T09:34:06.420 回答