Databases
Postgres 18 databases with optional pgvector. Private access from your containers only. 1 database and 1 GiB for each account. No backups.
A database is a Postgres 18 server with one database for your app. You can turn on pgvector for vector search.
Databases need no approval. Any account can make one.
Create a database
Section titled “Create a database”In the console, open Databases, then select Create database. Give:
| Field | Rule |
|---|---|
| Name | Lowercase letters, digits and -. It starts with a letter. 63 characters at most. Unique in the project. |
| Size | 0.25 vCPU / 512 MiB. |
| Enable vector | Optional. Turns on the vector extension. You can change it later. |
After you create the database, the console shows the password and the connection URL one time. Copy them. We do not keep the password. If you lose it, select Reset password in the database’s side panel. A reset ends all open connections.
The database is ready in about 1 minute.
Connection details
Section titled “Connection details”| Field | Value |
|---|---|
| Host | Shown in the console. It ends in .svc.cluster.local. |
| Port | 5432 |
| Database | app |
| User | app |
The connection URL has this format:
postgresql://app:<password>@<host>:5432/appPrivate access only
Section titled “Private access only”A database has no public address. Nothing is open to the internet.
-
The containers of the same project can connect to it. Containers in other projects of your account cannot.
-
You can connect from your computer with a network connector. A connector reaches the database only when you select it.
-
Containers need approval for each account. See Containers.
The app user
Section titled “The app user”The user app owns the database app. It is not a superuser.
- You can make tables, indexes, schemas and roles in
app. - You can make trusted extensions, for example
pg_trgmandvector. - You cannot use superuser features, for example
COPY ... PROGRAM.
Vector
Section titled “Vector”Select Enable vector in the side panel, or set it on create. This runs CREATE EXTENSION vector. See Vector search.
To turn vector off, first drop all columns and indexes that use the vector type. If one exists, the console shows an error.
States
Section titled “States”| State | Meaning |
|---|---|
| Provisioning | The database is starting. |
| Running | The database runs. |
| Read-only | The account is at the storage limit. See Storage limit. |
| Suspended | The account is far over the storage limit. Connections are blocked. |
| Failed | The database did not start. The console shows the reason. |
| Deleting | The database is being deleted. |
Back up your data
Section titled “Back up your data”We do not back up databases. Use pg_dump from a container to save a copy in your own storage:
pg_dump "$DATABASE_URL" --format=custom --file=backup.dumpDelete a database
Section titled “Delete a database”Select Delete in the side panel. This deletes all data. You cannot undo it.
A project with a database cannot be deleted. Delete the databases first.
Limits
Section titled “Limits”| Limit | Value |
|---|---|
| Databases for each account | 1 |
| Storage, all databases together | 1 GiB |
| Size | 0.25 vCPU / 512 MiB |
| Quota | Databases use the same vCPU and memory quota as containers (2 vCPU, 4 GiB on the free tier). |
| Backups | None |
| Replicas | None. One server. |
See Limits.
GETandPOST /v1/projects/{project_id}/databasesGET,PATCHandDELETE /v1/projects/{project_id}/databases/{database_id}POST /v1/projects/{project_id}/databases/{database_id}/reset-password
Only the create and reset responses contain password and connection_url.