How to troubleshoot and speed up Postgres stop and restart attemptsSome very popular reasons affecting the duration of the shutdown attempt: