Metadata Database
Metadata database prerequisites for CARTO Self-Hosted
Overview
CARTO Self-Hosted requires an external PostgreSQL metadata database. You must provision and manage this database as part of your infrastructure before deploying CARTO.
See How CARTO uses the Metadata Database for background on what this database stores and why it matters.
Supported versions
CARTO Self-Hosted requires PostgreSQL 14 or above.
Managed service options
CARTO recommends using a cloud-managed PostgreSQL service for automated backups, high availability, and maintenance.
Google Cloud
Cloud SQL for PostgreSQL
Use Private IP for network isolation
Amazon Web Services
Amazon RDS for PostgreSQL
Use Multi-AZ for high availability
Microsoft Azure
Azure Database for PostgreSQL – Flexible Server
Preferred over Single Server (deprecated)
The minimum requirements for production are:
1 vCPU
2 GB of RAM memory
20 GB of SSD storage
When enabling CARTO AI, a second PostgreSQL database is required. It can be omitted if you don't plan to use AI in CARTO.
Naming recommendations
When deploying the PostgreSQL instance for CARTO Self-Hosted, we recommend following these best practices to ensure consistency and avoid common configuration errors:
Instance Name (Cloud SQL / RDS / VM-based PostgreSQL)
Use a nomenclature that includes the environment.
Example:
Database and User Names
Use
cartofor both the database name and the database user.Recommended:
Checklist
Last updated
Was this helpful?
