Upgrading Greenbone and PostSQL


I am trying to upgrade the Greenbone from 9.0.1 to version 20. But it seems to require PostSQL to be upgrade as well from version 12 to 13. Is there a set of instructions on the best way to upgrade Greenbone and PostSQL with out losing the database?

Thank You