Install postgresql-server, do postgresql-setup initdb, change listen address in /var/lib/pgsql/data/postgresql.conf, change ident methods in /var/lib/pgsql/data/pg_hba.conf, systemctl start postgresql, ^start^enable.
CREATE USER unam PASSWORD ‘123’;
CREATE SCHEMA unamschema AUTHORIZATION unam;
CREATE DATABASE unamdb OWNER=unam;