PostgreSQL

Databases Cloud Server Made by PostgreSQL Global Development Group

SQL database for sites and apps

Install

Plan

s-1vcpu-2gbSmallest that fits

1 vCPU · 2 GB RAM · 32 GB NVMe

฿229/mo

Settings

Timezone

PostgreSQL 18 from Ubuntu, with Ubuntu’s security updates. It runs as a system service that starts when the server boots. Uninstalling it deletes PostgreSQL and its data.

After you press Install

  1. Check the price, accept the terms

    In the console

  2. Press Create server and install

    The server is created and billing starts

  3. Connect

    From outside on the public IP, or a program on the server

Connection and data

Who can connect
Connect from outside on the server’s public IP, from the IPs you allow (yours to start with). The password is made for you and the connection is encrypted with TLS.
From outside
In the console after installingpostgresql://xver:••••••@SERVER_IP:5432/xver?sslmode=require
On the server
For programs on the same serverpostgresql://xver:••••••@127.0.0.1:5432/xver
Password
Made on the server when it is installed. Shown in the console.
If you change it
If you changed the password inside PostgreSQL, the one shown is out of date.
Who can read it
Anyone with access to this server, coding agents included, can read this password.
Data
Data is on this server’s disk and is not backed up automatically. Deleting the server deletes it.
Other apps on the server
Other apps on this server can run commands, so they can read, change or delete the data in PostgreSQL. Use separate servers for important data.

Terms and costs

  • You read and accept the terms of PostgreSQL before you confirm.
  • XVer bills only the server, not app accounts or their usage.

Read the terms of PostgreSQL (opens in a new tab)

Full statement

XVer is not the developer or agent of PostgreSQL, and PostgreSQL does not endorse this service. You chose to install PostgreSQL and use it under the terms of PostgreSQL. You run the database and back up its data yourself. Names and logos are trademarks of their owners.

How to access

From outside

Connect from a program on your computer over the public IP, from the IPs you allow, encrypted with TLS.

  1. Show the password in the console after installing

    To start with, connections are accepted from your IP

  2. Put this address in your program

    postgresql://xver:••••••@SERVER_IP:5432/xver?sslmode=require

Replace SERVER_IP with your server’s IP

SSH tunnel

For when connections from outside are off. Connect from your computer through an SSH tunnel.

  1. Open an SSH tunnel in a terminal on your computer and leave it running

    With the same password or key you use for the server

    ssh -N -L 5432:127.0.0.1:5432 xver@SERVER_IP
  2. Connect from another window

    The password is shown in the console after installing

    psql "postgresql://xver@127.0.0.1:5432/xver"

Replace SERVER_IP with your server’s IP

Programs on the same server connect to 127.0.0.1 directly, without a tunnel.

Web terminal

Opens in the browser.

  1. Open the server in my.xver.cloud

  2. Press Web terminal

    No server password

The owner and members who can manage the project can open it.

SSH

From a terminal on your computer, with a password or a key.

  1. Connect over SSH

    ssh xver@SERVER_IP

Replace SERVER_IP with your server’s IP

1 copy the SSH command 2 show the password (sample data, console in Thai)

Web console

For when the web terminal or SSH does not open. Needs the server’s password.

  1. Open the server in my.xver.cloud

    The user name and password are under the Access tab

  2. Press the arrow next to Web terminal and choose Web console

  3. Type the user name and password

A server with only an SSH key has no password: use SSH.

Images

  • Create tables, add rows and query with SQL in psql
  • Inspect table structure with \dt and \d
  • Create a database and switch to it in a few commands
  • 1 copy the SSH command 2 show the password (sample data, console in Thai)

Screenshots taken by XVer

On this page
  1. What it does
  2. Who it's for
  3. What you need
  4. How to install
  5. What is on the server
  6. Connect for the first time
  7. Who can get in
  8. Change passwords
  9. Back up and restore
  10. Remove the app
  11. What it costs
  12. Safety
  13. Frequently asked questions

PostgreSQL screenshots

  • Create tables, add rows and query with SQL in psql
  • Inspect table structure with \dt and \d
  • Create a database and switch to it in a few commands

Screenshots taken by XVer

PostgreSQL is an open-source SQL database developed by the PostgreSQL Global Development Group, an independent community of developers around the world. It grew out of the POSTGRES project at the University of California, Berkeley, which started in 1986.

What it does#

Task How PostgreSQL does it
Stores data for sites and apps Tables and standard SQL, with transactions that save all of a change or none of it
Keeps bad data out Primary keys, foreign keys, UNIQUE and NOT NULL are checked on every write
Stores JSON The jsonb type, searchable with SQL and indexable
Serves many users at once Reads do not wait for writes, and writes do not wait for reads
Splits up access A user (role) per app, with rights per table, per column or per row

Developer site: postgresql.org (opens in a new tab) · Source code: git.postgresql.org (opens in a new tab)

Who it's for#

  • Developers who want their own database for a site or API running on the same server
  • Small teams that need a database for testing or staging, apart from everyone's laptops
  • People using tools like n8n or their own scripts who need SQL storage
  • People who can run a database themselves, including backups and restores

What you need#

Item Details
Account None
Smallest size 1 vCPU, RAM 2 GB, NVMe disk 32 GB, Bandwidth 2 TB
On your computer psql or a database tool that connects to PostgreSQL, such as pgAdmin. An SSH client too if you use an SSH tunnel

How to install#

  1. Press Install PostgreSQL on this page
  2. Sign in to XVer, then check the plan and the price
  3. Choose how you get into the server: a password or an SSH key
  4. Read the PostgreSQL terms and tick the box to accept them
  5. Press Create server and install. The server is created and billing starts after this step

When it is installed, the database password is on the install page in the console. Show it when you need it.

What is on the server#

Item Details
System Ubuntu 26.04, user xver with sudo
Database PostgreSQL 18, database xver, user xver, text stored as UTF-8
The database user xver A superuser: it can create more databases and users
Ports open to the internet Port 5432, only from the IPs you allow, encrypted with TLS
Runs in the background PostgreSQL runs all the time and starts when the server boots

Connect for the first time#

From your computer#

PostgreSQL takes outside connections on port 5432 from the IPs you allow. At first that is only your own IP. You can add more in the console. Connections are encrypted with TLS.

Connection string
postgresql://xver:PASSWORD@SERVER_IP:5432/xver?sslmode=require

Connect with psql from your computer. When it asks for the password, paste the one from the console. It is not shown on screen.

On your computer
psql "postgresql://xver@SERVER_IP:5432/xver?sslmode=require"

When it works: you see the prompt xver=#. Type \l to list databases, \dt to list tables and \q to quit.

In pgAdmin or another tool, use the server's IP as the host, port 5432, user xver, database xver, the password from the console, and SSL mode require.

Through an SSH tunnel#

If you keep outside connections off, an SSH tunnel carries port 5432 on your computer to the server. This step needs SSH. The web terminal cannot do it.

Open Terminal or PowerShell on your computer and leave the window open. Use the same password or key you use for the server. After the password, a still screen is normal.

On your computer
ssh -N -L 5432:127.0.0.1:5432 xver@SERVER_IP

Open another window, connect with psql and paste the password from the console when asked.

On your computer
psql "postgresql://xver@127.0.0.1:5432/xver"

In pgAdmin or another tool, use host 127.0.0.1, port 5432, user xver, database xver and the password from the console, while the tunnel is running.

From an app on the same server#

Programs on the server connect to 127.0.0.1:5432 directly, without a tunnel. The connection string looks like this.

Connection string
postgresql://xver:PASSWORD@127.0.0.1:5432/xver

Keep it in the app's settings file or environment variables, never in code that goes into Git.

Give an app its own user and database#

The user xver can do everything. The PostgreSQL docs advise doing everyday work as a user that is not a superuser. Connect with psql and create a new user. Set its password with \password, which keeps the password out of the command history.

In psql
CREATE ROLE myapp LOGIN;
\password myapp
CREATE DATABASE myapp OWNER myapp;

That app then uses postgresql://myapp:MYAPP_PASSWORD@127.0.0.1:5432/myapp instead of the xver account, with MYAPP_PASSWORD replaced by the password you set.

Who can get in#

Way in Who
From outside People connecting from an IP you allow who know the database password
SSH tunnel People who can SSH into the server and know the database password
Programs on the server Programs that have the database password
Web terminal The owner and members who can manage the project, with no server password
SSH People who hold the server's password or key
Web console People who hold the server's password

Anyone with access to this server, coding agents included, can read the database password.

Change passwords#

What How
The server's password Server page, Access tab, press Reset password. The old one stops working at once
The database user xver Connect with psql and type \password. After that, the password the console shows is out of date: keep the new one yourself and update every app that uses it

Back up and restore#

The data is on this server's disk and is not backed up automatically. Deleting the server or uninstalling the app deletes it. pg_dump makes a copy of a database while it is in use, without blocking other people's reads and writes.

Back up to your computer so the file lives off the server. You need pg_dump 18 or newer, because pg_dump refuses to dump from a server newer than itself. Through an SSH tunnel, use postgresql://xver@127.0.0.1:5432/xver in the commands instead.

On your computer
pg_dump -Fc -d "postgresql://xver@SERVER_IP:5432/xver?sslmode=require" -f xver.dump

Restore with pg_restore. The options --clean --if-exists drop the existing objects of the same names before writing from the file.

On your computer
pg_restore --clean --if-exists -d "postgresql://xver@SERVER_IP:5432/xver?sslmode=require" xver.dump
  • pg_dump backs up one database at a time. If you made more databases, back up each one
  • Users you created are not in a pg_dump file. Back them up separately with pg_dumpall --globals-only
  • A backup file holds all your data. Guard it like a password, and test a restore before you need one

Remove the app#

  1. Back up with pg_dump first. Uninstalling deletes PostgreSQL and all its data
  2. Open the server page, Apps tab
  3. Press Uninstall on PostgreSQL, check what will be deleted, and confirm

The server stays and is billed as usual. If you no longer need it, delete the server. Its data is gone for good.

What it costs#

XVer does not charge for the app. You pay XVer for the server only. A server that is off is still billed. Delete it to stop billing. Its data is gone for good.

PlanNVMe diskBandwidthPer hourPer month
1 vCPU · 2 GB32 GB2 TB฿0.38/hr฿229/mo
2 vCPU · 4 GB40 GB4 TB฿0.70/hr฿419/mo

The price you pay is shown before you confirm

Compare every size on Cloud Server pricing.

Safety#

Do this Avoid this
Allow only the IPs you really use Letting every IP connect
A user per app, with only the rights it needs Every app on the xver account
Regular pg_dump backups kept off the server Keeping the data only on the server
  • The server's user xver can use sudo without a password, so anyone who can run commands on the server can reach all the data
  • Do not paste a connection string with its password into a chat or a screenshot

Frequently asked questions#

Is it free, and do I need an account?

PostgreSQL is free and open source under the PostgreSQL License, which allows commercial use. You need no account with anyone. XVer charges only for the server.

What server size do I need?

s-1vcpu-2gb is enough for a small site or app. For a lot of data, many connections at once, or other databases on the same server sharing its RAM, choose s-2vcpu-4gb or larger.

How do I update it?

PostgreSQL 18 gets Ubuntu's security updates. Its developers support version 18 until November 2030. There is no automatic upgrade to a new major version: moving to one means a backup with pg_dump and a restore into the new version.

Can I open it to the internet?

Yes. The server takes connections on port 5432 from the IPs you allow, at first only your own, and you can add more in the console. It needs the password made on the server, and the connection is encrypted with TLS.

I lost the database password. What now?

Show it on the install page in the console. If you changed it yourself with \password, the console still shows the old one.

Is XVer connected to PostgreSQL?

No. XVer is not its developer or agent, and the PostgreSQL Global Development Group does not endorse this service.

฿229/mos-1vcpu-2gb

Install PostgreSQL

Related posts

See all apps