Currently it is not possible to use any database other than MariaDB. Frappe does have some level of PostgreSQL support, but it is only for the Frappe framework itself, and the 1000s of custom queries in ERPNext were not converted to PostgreSQL yet.
In this post I outlined a strategy to refactor the database layer and add PostgreSQL support to ERPNext:
The same strategy would allow us to support MS SQL more easily.