Only MySQL is supported.
But all the database code is separated into files, so in theory you could replace the SQL in every qa-db-* file with Postgres-compatible SQL.You may not need to change much at all apart from the database connection functions.