Movement of database storage location is tricky and it may be better to review the dependent configuration which might conflict due to relocation of /ThingworxPostgresqlStorage. I am not fully sure if it is recommended. Is this is a Production server or development?
Backup and restore of PostgreSQL may be an option. This article shows one way of doing that.