PostgreSQL is a powerful, open-source, object-relational database management system used globally by some of the world’s best technology companies. Miget’s managed PostgreSQL offering makes it easy to use PostgreSQL in a secure, reliable, and completely hands-off way.

Creating a Database

You can provision PostgreSQL in two ways: as a standalone service or as an addon attached to an existing app.

Standalone Service

  1. Open app.miget.com and go to Services.
  2. Click Create your first service (or New service) and pick PostgreSQL, then choose Configure.
  3. Assign a Resource (the compute pool where the database will run) and give the service a descriptive Name/Label.
  4. Customize the database:
    • Pick the PostgreSQL version (see supported list below).
    • Toggle Public Access on/off depending on whether you need external connectivity.
    • Optionally add project-scoped environment variables such as DATABASE_URL so every app in the project can reuse the connection string.

App Addon

If you already have an app, open it and select Addons → PostgreSQL → Add. The same configuration form appears with identical options (version, public access, environment variables). When created as an addon, Miget automatically injects app-level environment variables so your app can immediately consume the connection details.
Create new PostgreSQL addon form
Select PostgreSQL version, currently Miget supports:
  • 17.x
  • 16.x
  • 15.x
  • 14.x
  • 13.x (maintenance only)
You receive the latest patch for the chosen major line, e.g., 17.1 for the 17.x track.
Select RAM size and Disk space for your database. RAM size and Disk space count toward your Miget plan’s limits. The database storage limit applies to all storage the PostgreSQL database needs, including caches, indices, etc. Backup storage does not count toward your Miget plan’s storage limit.

Memory Profiles

Managed Miget’s PostgreSQL instances are pre-configured with memory profiles. Miget PostgreSQL plans ranging from 128 Mi to 8 Gi. If you need more - we can always work with you to provide a custom plan; just contact us at hello@miget.com
RAMmax_connectionsshared_bufferseffective_cache_sizemaintenance_work_memwork_mem
128 Mi9732MB96MB8MB84kB
256 Mi9764MB192MB16MB168kB
512 Mi97128MB384MB32MB337kB
1 Gi97256MB768MB64MB675kB
2 Gi97512MB1536MB128MB1351kB
4 Gi971GB3GB256MB2702kB
8 Gi1972GB6GB512MB2661kB

Connecting to Your Database

How you connect to your database depends on your code: some frameworks expect a single connection string or URL in an environment variable, while others need multiple connection parameters in a configuration file.
When you add a PostgreSQL addon, Miget will automatically generate and set a DATABASE_URL variable with a value like postgres://fcsn1vo8:PXERTRrlRhTb@postgres-t7hvtfin.migetcyy.eu-east-1.migetapp.internal:5432/t7hvtfin. This means you don’t have to manually configure your database connection—Miget handles it for you, ensuring the connection details are securely stored and easily accessible by your application during runtime.

Connecting from Apps on Miget

Using internal connection values is the recommended way for workloads running inside Miget. The hostname, username, database, and password are displayed on the service or addon page:
Database credentials panel
An internal connection string that looks like postgres://fcsn1vo8:PXERTRrlRhTb@postgres-t7hvtfin.migetcyy.eu-east-1.migetapp.internal:5432/t7hvtfin is also available if needed. Many database frameworks allow (or require) a connection string instead of individual connection parameters.

Connecting from Outside Miget

If Public Access is enabled, the Connection Information panel lists:
  • An External Connection URL (standard PostgreSQL URI)
  • A ready-to-run psql command, for example:
    PGPASSWORD=TMyqX12mvlZy psql -h postgres-service-umlwa.db.eu-east-1.onmiget.com -U l9vhbpir ksm7vspn
    
Use these values for local tools, migrations, or CI jobs.

Backups

We take complete database backups every day and retain all backups for at least 7 days.

Disk Space

We offer PostgreSQL plans ranging from 128 Mi to your current Miget plan’s limit of storage per instance. The database storage limit applies to all storage the PostgreSQL database needs, including caches, indices, etc. Backup storage does not count toward your plan’s storage limit. If you need more - we can always work with you to provide a custom plan; just contact us at hello@miget.com

Metrics

Dashboard

You can view database metrics any time in the Miget Dashboard. Currently, we support the following:
MetricDescription
CPUThe amount of CPU used
MemoryThe amount of memory used
You can see these metrics under Miget Overview page.

Database Versions & Upgrades

Miget currently supports PostgreSQL 13, 14, 15, 16 and 17. You can select the major version of your database at creation time, after which it cannot be changed. We will periodically upgrade the minor version of your databases to apply the latest security fixes. For any maintenance periods that require downtime, we email you ahead of time. We also allow you to run the maintenance yourself, simply stop and start your database from the Miget Dashboard. A newer Docker image of PostgreSQL will run your database.

Upgrading to a New PostgreSQL Major Version

Here’s an overview of the process for upgrading your database to a newer PostgreSQL version:
  • Set up a new database instance with the desired version.
  • Stop any applications that write to the current database to avoid discrepancies between the existing data and the backup.
  • Create a backup of your current database.
  • Restore the backup to the new database instance.
  • Update your applications to connect to the new database and resume their operation.
Depending on your application architecture, this upgrade may involve some downtime. You can back up your database schema and table data using the pg_dump command. Replace variables with your connection details (internal or public hostname):
PGPASSWORD={PASSWORD} pg_dump -h {DATABASE_HOST} -U {DATABASE_USER} {DATABASE_NAME} \
   -n public --no-owner > database_dump.sql
You can then restore this data to your new database:
PGPASSWORD={PASSWORD} psql -h {DATABASE_HOST} -U {DATABASE_USER} {DATABASE_NAME} < database_dump.sql

Deleting Databases

If you choose to delete a PostgreSQL instance, we do not keep any backups or snapshots of your data. Be sure to download a backup before proceeding with deletion.

PostgreSQL Extensions

Miget PostgreSQL databases support many popular extensions, such as pgvector, postgis, and others. The specific PostgreSQL version of your database determines which extensions are available and how they can be added. To enable any supported extension, run the CREATE EXTENSION command, for example:
CREATE EXTENSION postgis;
To run this command, start a psql session using either the internal hostname or the external connection URL, for example:
PGPASSWORD={PASSWORD} psql -h {DATABASE_HOST} -U {DATABASE_USER}