Fixed issue #8519: Error during upgrade vom 2.00 to 2.05 using PostgreSQL