Updated on 2024-11-30 GMT+08:00

Full Synchronization Error: type 'geometry' does not exist

Scenarios

During full synchronization, an error is reported, and the log information is as follows: service DATAMOVE failed, cause by: retry structures failed events=the fail structures are [type=operator, index=2, schema_name=public, object_name=?|]reason:[ERROR: type 'geometry' does not exist].

Possible Causes

The postgis plug-in is not installed on the destination database.

Run the following SQL statement in the destination RDS for PostgreSQL database:

select * from pg_extension where extname = 'postgis';

Solution

Extensions are not synchronized. Before synchronization, install the corresponding extension in the destination database. Perform the following steps to install the extension and retry the DRS task:

  1. Log in to the destination RDS for PostgreSQL database as the root user.
  2. Run the following SQL statements to install postgis:

    create extension "postgis";

  3. Retry the DRS task.