MySQL
SQL database by Oracle
DatabasesFree
Relational database
The script is free · VPS from $4.63 per month · installs in about 2 minutes
root@vps:~# sudo apt install -y postgresql-common && sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y && sudo apt install -y postgresql-18
✓ PostgreSQL 18.6 installed · about 2 minutes
root@vps:~#
PostgreSQL is a reliable open-source relational database. It suits Telegram bots, web apps, analytics and anything where transactions and data integrity matter.
Your own database on a VPS gives you full control over the version, settings and backups, without the limits of managed cloud databases. It is used by n8n, Gitea, Nextcloud, Remnawave and many other projects.
The command adds the official PostgreSQL repository (PGDG) and installs the latest major version, 18.
For PostgreSQL: at least 2 vCPU, 3 GB RAM and 45 GB NVMe.
Three steps in the bot or one command over SSH; installation takes about 2 minutes.
Open @ExpressHost_bot and pay for a VPS. The server will be ready in about 60 seconds.
At the “Add-ons” step pick the script from the library, or run it later: Server settings → Scripts.
sudo -u postgres psqlThe bot will send the server address and login details to the chat.
Connect to the server as root and run the command. Supported systems: Ubuntu 22.04, Ubuntu 24.04, Debian 12.
sudo apt install -y postgresql-common && sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y && sudo apt install -y postgresql-18| Port | Protocol | Purpose |
|---|---|---|
| 5432 | tcp | Database connections (localhost only by default) |
sudo -u postgres psqlsudo -u postgres createuser --pwprompt app && sudo -u postgres createdb -O app applisten_addresses in /etc/postgresql/18/main/postgresql.conf and add a rule to pg_hba.confDidn’t find an answer? Message @ExpressHost_SupportBot.
Better not. Connect via an SSH tunnel or allow only the required IPs in pg_hba.conf.
sudo -u postgres pg_dump app > app.sql. For regular backups, add this command to cron.
In /var/lib/postgresql/18/main, configs are in /etc/postgresql/18/main.
PostgreSQL installs at checkout — in the bot.
Netherlands, Amsterdam
$5.16/mo
$0.18 for 24 hours · $1.29 for 7 days
Pick PostgreSQL at the “Scripts” step when you order the server.
Germany, Frankfurt
$6.50/mo
$0.23 for 24 hours · $1.63 for 7 days
Pick PostgreSQL at the “Scripts” step when you order the server.
Poland, Warsaw
$4.63/mo
$0.17 for 24 hours · $1.16 for 7 days
Pick PostgreSQL at the “Scripts” step when you order the server.
Estonia, Tallinn
$5.83/mo
$0.21 for 24 hours · $1.46 for 7 days
Pick PostgreSQL at the “Scripts” step when you order the server.