So long as you are using the Shared Persistence model you can host PostgreSQL using an external resource (Azure PostgreSQL, AWS' RDS). If you're on Qlik Sense June 2017 or higher, 100%. Prior to that you'd need to be using Shared, rather than sync'd, persistence.