All Products
Search
Document Center

ApsaraDB RDS:Create an ApsaraDB RDS for PostgreSQL instance with Babelfish enabled

Last Updated:Mar 28, 2026

This topic walks you through creating a Babelfish-enabled instance and verifying the setup.

Important

Babelfish can only be enabled at instance creation time. It cannot be enabled on an existing instance, and cannot be disabled after it is turned on.

Prerequisites

Before you begin, ensure that you have selected:

  • Major engine version: RDS PostgreSQL 15

  • Product series: Basic Edition or High-availability Edition

  • Product type: Standard Edition

Choose a migration mode

Before creating the instance, decide which migration mode fits your scenario.

ModeSQL Server databasesPostgreSQL schema layoutWhen to use
single-dbOneStandard PostgreSQL schemaMigrating a single SQL Server database.
multi-dbMultiple<database_name>_<schema_name> per database, to prevent name conflictsMigrating multiple SQL Server databases from the same SQL Server installation.

For more information about how to select a migration mode, see Migration modes.

Create an instance with Babelfish enabled

  1. Log in to the ApsaraDB RDS console. In the left-side navigation pane, click Instances. In the top navigation bar, select the target region.

  2. Click Create Instance to open the buy page.

  3. Follow the configuration wizard. The table below covers the Babelfish-specific parameters. For all other parameters, see Create an ApsaraDB RDS for PostgreSQL instance.

ParameterDescription
EngineSelect PostgreSQL 15, then select Enable Babelfish.
Instance TypeSelect from the instance types available in the console.
Babelfish Migration ModeAppears after you select Enable Babelfish in the Basic Configurations step. Select single-db or multi-db based on the guidance above.
Initial AccountThe privileged management account for Babelfish and PostgreSQL. This account cannot be deleted after creation. See the account naming rules below.
PasswordThe password for the management account. See the password rules below.

Account naming rules:

  • 2–63 characters

  • Lowercase letters, digits, and underscores (_) only

  • Must start with a letter and end with a letter or digit

  • Cannot start with pg

  • Cannot be a PostgreSQL reserved keyword

Password rules:

  • 8–32 characters

  • Must contain at least three of the following: uppercase letters, lowercase letters, digits, special characters

  • Supported special characters: !@#$%^&*()_+-=

Note

To reset the password after instance creation, see Reset a password.

After the instance is created, the babelfish_db database is created automatically. This database is critical to Babelfish — do not delete it, or the instance becomes unavailable.

Verify the instance

Check Babelfish status

  1. Go to the Instances page, find the instance, and click its ID.

  2. In the left-side navigation pane, click Basic Information.

  3. In the Configuration Information section, confirm that Babelfish Status shows the expected state, and note the Minor Engine Version.

View the management account

  1. Go to the Instances page, find the instance, and click its ID.

  2. In the left-side navigation pane, click Accounts.

  3. On the User Accounts tab, confirm the Babelfish management account created during instance setup.

    Babelfish management account

View the endpoint and TDS port

Before viewing connection details, configure a whitelist for the instance.

  1. Go to the Instances page, find the instance, and click its ID.

  2. In the left-side navigation pane, click Database Connection. The page shows the internal and public endpoints and the TDS port number.

    Note

    To use a public endpoint, click Apply for Public Endpoint. For details, see Apply for or release a public endpoint. To change the TDS port number, click Modify Endpoint. For details, see View or change the endpoints and port numbers of an ApsaraDB RDS for PostgreSQL instance.

    Endpoint and TDS port

API reference

APIDescription
CreateDBInstanceCreates an RDS instance
DescribeDBInstanceAttributeQueries instance details
AllocateInstancePublicConnectionApplies for a public endpoint
ModifyDBInstanceConnectionStringModifies an endpoint
DescribeDBInstanceNetInfoQueries endpoints