Home / Support / PostgreSQL on AlmaLinux 9
PostgreSQL on AlmaLinux 9 — PostgreSQL on AlmaLinux 9: the world's most advanced open-source database on an enterprise-grade RHEL-compatible base. Published by Derek Coleman & Associates Inc on the Azure Marketplace, deployed in your own Azure subscription.
The generated superuser password now authenticates over TCP: first boot rewrites the two distro pg_hba.conf lines that mapped 127.0.0.1/32 and ::1/128 to `ident` (which refused every password login) to `md5`, and then proves `psql -h 127.0.0.1 -U postgres` with the password before writing /var/lib/pgsql/.superuser-password. `sudo -u postgres psql` keeps working via peer authentication as before.
If you deployed this VM before 2026-09-16, it came from the older image and is not changed by the new publication — redeploy from the current Marketplace version, or apply the one-time repair below:
sudo -u postgres psql -c 'SELECT pg_reload_conf()'Image change: see the pull request.
Source: the Marketplace live version set for this offer, read from Partner Center on 2026-09-16. New deployments take the newest version by default.
| Application ports | 5432 (PostgreSQL) — opened in firewalld at first boot; the server listens on localhost until you set listen_addresses |
|---|---|
| Admin credential file | sudo cat /var/lib/pgsql/.superuser-password |
| Sign in as | postgres |
| Service(s) | postgresql |
| Configuration | /var/lib/pgsql/data/postgresql.conf (listen_addresses); /var/lib/pgsql/data/pg_hba.conf |
| Logs | /var/lib/pgsql/data/log/ |
| Version | PostgreSQL (AlmaLinux 9 AppStream package) |
| Platform | AlmaLinux 9 |
This image generates its admin credential on the VM at first boot — nothing is pre-set. SSH into the VM with the username + key you chose at deploy, then print the generated credential:
ssh <your-username>@<VM-IP>
sudo cat /var/lib/pgsql/.superuser-passwordSign in as postgres.
Sign in as postgres — either with `sudo -u postgres psql` (peer authentication) or with the generated password in /var/lib/pgsql/.superuser-password over TCP. Change the password and create a least-privilege application role before you open 5432 to anything.
Email support@dcassociatesgroup.com (response within 1 business day) or send a
message via the contact form. Include the offer name, VM size, region, and any log output — sudo journalctl -u <service> -n 100 usually tells the story.