Keep lock with pg