Debian

https://wiki.debian.org/es/PostgreSql sudo su apt-get install postgresql-12
su - postgres
psql
postgres=# CREATE USER mypguser WITH PASSWORD 'mypguserpass';
CREATE DATABASE mypgdatabase OWNER mypguser;
su - mypguser
psql mypgdatabase
/etc/init.d/postgresql reload
systemctl status postgresql vi /etc/postgresql/15/main/postgresql.conf listen_address = 'localhost , ips'