To connect to an ApsaraDB RDS for PostgreSQL instance, you must enter the internal or public endpoint and port number of the RDS instance. This topic describes how to view and change the internal and public endpoints and port numbers of an ApsaraDB RDS for PostgreSQL instance in the ApsaraDB RDS console.

View the internal and public endpoints and port numbers in the original ApsaraDB RDS console

  1. Visit the RDS instance list, select a region above, and click the target instance ID.
  2. In the Basic Information section of the page that appears, view the internal and public endpoints and port numbers of your RDS instance.
    Note
    View endpoints

Change the internal or public endpoint and port number

  1. Visit the RDS instance list, select a region above, and click the target instance ID.
  2. In the left-side navigation pane, click Database Connection.
  3. Click Change Endpoint.
  4. In the dialog box that appears, select a connection type, enter the prefix of the endpoint that you want to change, specify the port number, and then click OK.
    Note
    • The prefix of an endpoint must be 8 to 64 characters in length and can contain only letters, digits, and hyphens (-). The prefix must start with a lowercase letter.
    • The port number must be within the range of 1000 to 5999.
    • If your RDS instance uses local SSDs, you cannot change its port numbers.
    Change endpoints

FAQ

  • After I change an endpoint or port number of my RDS instance, do I need to update the endpoint or port number on my application?

    Yes, after you change an endpoint or port number of your RDS instance, you must update the endpoint or port number on your application. Otherwise, your application cannot connect to your RDS instance.

  • After I change an endpoint or port number of my RDS instance, is the change immediately applied? And do I need to restart my RDS instance?

    After you change an endpoint or port number of your RDS instance, the change is immediately applied and you do not need to restart your RDS instance.

  • After I change or release an endpoint of my RDS instance, can the endpoint be used for another RDS instance?

    Yes, after you change or release an endpoint of your RDS instance, the endpoint can be used for another RDS instance.

  • Does a primary/secondary switchover trigger changes to the endpoints of my RDS instance?

    No, a primary/secondary switchover does not trigger changes to the endpoints of your RDS instance. However, the IP addresses that are associated with the endpoints change. Your application can still connect to your RDS instance by using the endpoints.