Sonarqube 7.9 enterprise postgress db upgrade from 9.6.8 to 10

Currently using sonarqube 7.9 with postgres db 9.6.8
We need to upgrade postgres db 9.6.8 to 10.

is there is any recommended way for this upgrade without affecting the sonarqube 7.9

You can always save a backup from 9.6.8, import it into a Postgres 10 instance, and set Sonar to the new DB.

If anything goes wrong, just set Sonar to the old DB.