Help Center/ Relational Database Service/ User Guide/ Working with RDS for PostgreSQL/ Database Usage/ Databases/ Creating a Database
Updated on 2025-11-26 GMT+08:00
Creating a Database
Scenarios
After a DB instance is created, you can create databases on it.
Constraints
- Databases cannot be created for DB instances that are being restored.
- Database names must be unique.
- After a database is created, its name cannot be changed.
Procedure
- Log in to the management console.
- Click
in the upper left corner of the page and choose Databases > Relational Database Service. - On the Instances page, click the instance name to go to the Overview page.
- In the navigation pane on the left, choose Databases and Accounts.
- On the Databases tab page, click Create Database. In the displayed dialog box, enter database information and click OK.
- The database name can contain 1 to 63 characters. Only letters, digits, and underscores (_) are allowed. It cannot start with pg or a digit and cannot be the same as RDS for PostgreSQL template database names. RDS for PostgreSQL template databases include postgres, template0, and template1.
- The default character set is utf-8. You can change it as required.
- You can specify a template database. A new database will be created using this template. Option template1 (default option) is adapted to RDS and template0 complies with the PostgreSQL community settings.
- A collation defines how characters are ordered. en_US.UTF-8 is used by default. Different collations may result in varied ordering results. For example, select 'a'>'A'; is false under en_US.UTF-8, but true under 'C', and also, 'C' must be used to obtain the migration results as expected when data is migrated from Oracle to RDS for PostgreSQL. Collations supported by a database can be queried from system catalog pg_collation.
- Ctype refers to character classification to be used in the new database (LC_CTYPE). The use of this parameter affects the classification of characters, such as lowercase letters, uppercase letters, and digits. By default, the character classification of the template database is used.
- The remarks can contain 0 to 512 characters.
- After the database is created, manage it on the Databases page.
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.