Once again, please don't top post. On Sat, Apr 04, 2020 at 11:57:02AM +0530, Tejaswini GC wrote: > Hello Julien, > > The procedure for doing the upgrade is different for AWS. > And is it possible to know what the procedure was? > > After the PG upgrade we can see many locks in our system we believe this is > the main reason for the issue we are facing, > I can see these locks when using pg_stat_activity. > Any more details? Are you talking of heavyweight locks or lightweight locks? Since version 9.6 both are visible in pg_stat_activity. > Along with that few queries which were executing within millisecond are > taking more than few hours. > Please follow https://wiki.postgresql.org/wiki/Slow_Query_Questions to provide more details.