Fix PgSQL upgrade process failed
Merge pull request #1196 from FHenry/develop

Fix PgSQL upgrade process failed