Huawei Cloud Flexus
Huawei Cloud Flexus
- Product Bulletin
- Service Overview
- Getting Started
-
User Guide
-
Working with FlexusRDS for MySQL
- Using IAM to Grant Access to FlexusRDS
- Buying a FlexusRDS for MySQL Instance
- Connecting to a FlexusRDS for MySQL Instance
- Suggestions on Using FlexusRDS for MySQL
- Data Migration
-
Instance Management
- Upgrading the Minor Version of a FlexusRDS for MySQL Instance
- Upgrading a FlexusRDS for MySQL Instance to an RDS DB Instance
- Changing the Name of a FlexusRDS for MySQL Instance
- Rebooting FlexusRDS for MySQL Instances
- Resetting the Administrator Password of a FlexusRDS for MySQL Instance
- Enabling Storage Autoscaling for a FlexusRDS for MySQL Instance
- Binding an EIP to a FlexusRDS for MySQL Instance or Unbinding an EIP from a FlexusRDS for MySQL Instance
- Changing the VPC and Subnet of a FlexusRDS for MySQL Instance
- Renewing FlexusRDS for MySQL Instances
- Unsubscribing from a FlexusRDS for MySQL Instance
- Backups and Restorations
- Parameters
- Monitoring
- Logs
- Interconnection with CTS
- FlexusRDS for MySQL Tags
- FlexusRDS for MySQL Quotas
-
Working with FlexusRDS for PostgreSQL
- Permissions Management
- Buying a FlexusRDS for PostgreSQL Instance
- Connecting to a FlexusRDS for PostgreSQL Instance
- Suggestions on Using FlexusRDS for PostgreSQL
- Data Migration
-
Instance Management
- Changing the Name of a FlexusRDS for PostgreSQL Instance
- Rebooting FlexusRDS for PostgreSQL Instances
- Resetting the Administrator Password of a FlexusRDS for PostgreSQL Instance
- Enabling Storage Autoscaling for a FlexusRDS for PostgreSQL Instance
- Binding an EIP to a FlexusRDS for PostgreSQL Instance or Unbinding an EIP from a FlexusRDS for PostgreSQL Instance
- Renewing FlexusRDS for PostgreSQL Instances
- Unsubscribing from a FlexusRDS for PostgreSQL Instance
-
Backups and Restorations
- Creating a Manual Backup for a FlexusRDS for PostgreSQL Instance
- Deleting a Manual Backup of a FlexusRDS for PostgreSQL Instance
- Downloading a Full Backup of a FlexusRDS for PostgreSQL Instance
- Checking and Exporting Backup Information of a FlexusRDS for PostgreSQL Instance
- Restoring a FlexusRDS for PostgreSQL Instance
- Parameters
- Monitoring Management
- Logs
- Interconnection with CTS
- FlexusRDS for PostgreSQL Tags
- FlexusRDS for PostgreSQL Quotas
-
Working with FlexusRDS for MySQL
- API Reference
-
FAQs
- What Is FlexusRDS?
- Can FlexusRDS for MySQL and RDS for MySQL Instances Access Each Other?
- Can I Change the Instance Class of My FlexusRDS Instance?
- Does FlexusRDS Support Cross-AZ HA?
- What Is the Backup Policy of FlexusRDS?
- How Are FlexusRDS Backups Billed?
- How Do I Download FlexusRDS Backups to Restore Data Locally?
- Why Does the Root User of My FlexusRDS for MySQL Instance Not Have Super Permissions?
- Which Storage Engine Does FlexusRDS for MySQL Provide?
- Why Does FlexusRDS for MySQL Not Support the MyISAM Storage Engine?
- Does FlexusRDS for MySQL Support Read Replicas?
- Why Can't I Ping the EIP After It Is Bound to My FlexusRDS for MySQL Instance?
- How Do I Create Accounts and Databases for My FlexusRDS Instance?
- What Major Versions and Minor Versions Does FlexusRDS for MySQL Support?
- Why Are Pay-per-Use Instances Not Provided by FlexusRDS?
- Can I Scale Up the Storage Space of My FlexusRDS for MySQL Instance?
- General Reference
On this page
Help Center/
Huawei Cloud Flexus_Huawei Cloud Flexus RDS/
User Guide/
Working with FlexusRDS for PostgreSQL/
Suggestions on Using FlexusRDS for PostgreSQL/
Database Usage Suggestions
Copied.
Database Usage Suggestions
Naming
- The names of objects (such as databases, tables, and indexes) must be no more than 63 bytes. Note that some characters (such as Chinese characters) may occupy multiple bytes.
- Do not use reserved database keywords in object names or start an object name with pg or a digit.
- A 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 PostgreSQL template database names. PostgreSQL template databases include postgres, template0, and template1.
Table Design
- The table structure must be designed in advance to avoid frequent structure changes, such as adding fields or changing data types.
- There cannot be more than 64 fields in a single table.
- Create partitioned tables for the tables whose data needs to be deleted periodically. For example, you can create partitions by time and delete data from the partitions using DROP or TRUNCATE.
- Use appropriate data types for table fields. For example, do not use the character type for numeric or date data.
- When using the numeric data type, ensure that the values are within allowed ranges and meet precision requirements.
Index Design
- Design primary keys or unique keys for tables that require logical replication.
- When creating a foreign key, specify the action for deleting or updating the foreign key, for example, ON DELETE CASCADE.
- Create indexes for fields that are frequently used (such as fields for data query and sorting).
- Create partial indexes for queries using fixed conditions.
- Create expression indexes for queries using conditional expressions.
- A single table cannot contain too many indexes because indexes also occupy storage. For example, there should be fewer than 5 single-column indexes and fewer than 3 composite indexes.
SQL Design
- Specify the required fields to be returned in a query.
- Only use IS NULL or IS NOT NULL to determine whether a field is NULL.
- Use NOT EXISTS instead of NOT IN in a query.
- Use UNION ALL instead of UNION to concatenate result sets.
- Use TRUNCATE instead of DELETE to delete an entire table.
- Submit data changes in large transactions in batches to prevent high pressure during transaction commit or rollback.
- When creating a function, define the volatility of the function as the strictest category, instead of the default VOLATILE. Too many concurrent calls of VOLATILE functions may result in failures to establish new connections.
Security
- Do not assign the public role to the owner of an application database object. Assign a specific role to the owner.
- A database password must meet complexity requirements.
- Allocate a unique database account for each service.
- When accessing an object, explicitly specify the schema of the object to avoid accessing objects with the same name in other schemas.
Parent topic: Suggestions on Using FlexusRDS for PostgreSQL
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot