AnalyticDB for PostgreSQL supports switching between subscription and pay-as-you-go billing at any time, without interrupting your workloads.
Switching billing methods does not interrupt running workloads on the instance.
Choose a billing method
| Billing method | How you pay | Best for |
|---|---|---|
| Pay-as-you-go | Billed by the hour, charged to your account balance | Short-term use, testing, or workloads with unpredictable demand |
| Subscription | Prepaid for a fixed term; longer terms get higher discounts | Stable, long-running workloads where cost predictability matters |
Switch to subscription
Switching from pay-as-you-go to subscription generates a renewal order. The new billing method takes effect only after you complete payment. Until the order is paid, you cannot purchase new instances or make further billing method changes. Any unpaid order appears on the Orders page.
Log on to the AnalyticDB for PostgreSQL console.
In the upper-left corner, select a region.
Find the instance and choose More > Switch to Subscription in the Actions column.
Select a renewal duration, read and select the Terms of Service, and then click Buy Now.
On the Purchase page, confirm the order details and payment method, and then click Purchase.
Switch to pay-as-you-go
Pay-as-you-go instances are billed by the hour. Keep your account balance topped up to avoid overdue payments, which can cause downtime.
Log on to the AnalyticDB for PostgreSQL console.
In the upper-left corner, select a region.
Find the instance and choose More > Switch to Pay-as-you-go in the Actions column.
On the page that appears, review the notes and check the refund amount shown at the bottom of the page.
Read and select the Terms of Service.
Click Buy Now.