Import from PostgreSQL
Perform a one-time schema and data import into an empty database.
Before you begin
- Use a PostgreSQL 12–18 source reachable by the import service through public IPv4. Private and reserved addresses are rejected.
- Use a destination PostgreSQL major version equal to or newer than the source.
- Prepare source credentials with permission to read the schema and data.
- Confirm the destination is empty and any required extensions are available there.
- Stop application writes to both source and destination for the import window.
The importer copies schema and data, excluding source owners and permissions. It does not copy source roles or provide continuous replication.
Run the import
- Open the destination's Import data sidebar section. Enter the source details directly on this page.
- Enter the source hostname, port, database, username, and password.
- Configure TLS, an optional TLS server name, and certificate verification. Keep verification enabled for a verifiable source identity.
- Confirm that writes are stopped and the destination is empty.
- Select Test connection and import.
- Wait for the operation to finish, then connect to the destination and validate the schema, records, and application queries before resuming writes.
Limits and failure handling
The archive limit is 512 MiB. Each dump and restore step has a five-minute limit. Existing destination objects are never removed automatically.
A failed or interrupted import may still leave data in the destination. Inspect the destination before retrying. Do not delete data merely to clear an error without confirming what was imported.
If the source cannot be reached or a required extension is unavailable, correct that condition before submitting another import.
Source connection errors
The connection check reports a specific reason when the source provides a recognizable error:
- Hostname resolution failed: check the source hostname and its public IPv4 DNS records. Private or reserved addresses cannot be imported from directly.
- Connection refused, timed out, or network unreachable: check the port, PostgreSQL availability and firewall access from outside the source network.
- Authentication failed or access denied: verify the source account, password and connection policy, including any TLS requirement.
- Database not found: use the database name, rather than an account name or a connection URL.
- Certificate hostname mismatch: set the TLS server name (SNI) to a hostname covered by the source certificate.
- Certificate verification failed: check certificate validity, the trusted issuer and the complete certificate chain.
- TLS unsupported or handshake failed: check that the port serves PostgreSQL and that the source supports the selected TLS configuration.
If the reason remains unknown, contact support with the destination resource ID and the time of the failed attempt. Do not send passwords or connection strings containing credentials.
For Cloud SQL, check authorized networks and the configured SSL mode. Sources that require a custom CA or a client certificate need a compatible connection path; this form does not accept CA files or client certificate/key pairs. A TLS hostname alone does not replace certificate trust or client authentication.