1.0 to 2.0 migration preparation and FAQs
Before migrating PolarDB for PostgreSQL(Compatible with Oracle) from version 1.0 to 2.0, complete the preparation steps below. If you encounter problems after migration, check the FAQ section for solutions to the most common issues.
Pre-migration checklist
Complete these steps before cutting over to version 2.0. Each item is a blocker or a known cause of post-migration failures.
1. Replace application drivers
Version 1.0 and 2.0 use entirely different driver systems. Using 1.0 drivers against a 2.0 cluster will cause application failures.
Replace all version 1.0 drivers in your application with version 2.0 drivers before cutover. Version 2.0 supports the following:
JDBC driver: for Java applications
.NET driver: for .NET Framework and .NET Core applications
Other language drivers: for other programming languages
2. Verify parameter changes
Check any parameters you manually changed in version 1.0. Two parameters were renamed in version 2.0 and their defaults changed:
1.0 parameter name | 1.0 default | 2.0 parameter name | 2.0 default | Function | Action required |
|
|
|
| Controls statement-level transaction rollback | If you set this to a non-default value in 1.0, reconfigure it in 2.0 using the new parameter name. Note that the default changed from |
|
|
|
| Controls whether empty strings are treated as NULL | If you set this to a non-default value in 1.0, reconfigure it in 2.0 using the new parameter name. The default is unchanged. |
Parameter configurations are not automatically migrated. Reconfigure any non-default values manually in version 2.0.
3. Verify database client compatibility
Both version 1.0 and 2.0 are 100% compatible with the PostgreSQL protocol, so your existing database clients work without changes. Common clients include:
Best practices
Test before cutting over production. Fully validate all application functionality against a test cluster running version 2.0 before migrating production.
Back up your data. Take a complete backup of source data before starting migration.
Work through the FAQ checklist. Address each known issue category below systematically—some are blockers that cause immediate failures, others cause data anomalies that appear only after cutover.
Test application compatibility. Comprehensively test the compatibility of your applications with version 2.0.
Optimize for version 2.0. Utilize the new features of version 2.0 to optimize database access performance for your applications.
Document your changes. Record all configuration modifications and code changes for future reference.
Get help early. For complex issues, contact support before they block your migration.
FAQ
The table below summarizes each known issue, its impact, and whether it must be resolved before or after cutover.
Issue | Impact if not resolved | When to resolve |
Sequences generate duplicate or skipped values | Duplicate primary keys or data gaps after cutover | Immediately after migration, before application starts |
Stored procedure calls with OUT parameters fail | Application errors on every affected call | Before cutover (requires code change) |
Tables, views, or stored procedures cannot be found | Application errors when accessing database objects | After cutover |
Tables or views return permission denied | Access failures for affected users | After cutover |
Objects with mixed-case double-quoted identifiers cannot be found | Object lookup failures for affected identifiers | After cutover (rare issue) |