Single Server to Flexible Server PostGIS raster bug

WHS One 1 Reputation point
2023-03-09T06:40:49.6766667+00:00

We are trying to migrate an Azure Single Server PostgreSQL 9.6 database to Azure Database for PostgreSQL Flexible Server v14 using the Migration tool.

The migration keeps failing with no detailed error message, just:

Error while processing. Please reference MigrationId

Azure Database Migration service
Azure Database for PostgreSQL
{count} votes

1 answer

Sort by: Most helpful
  1. GeethaThatipatri-MSFT 29,387 Reputation points Microsoft Employee
    2023-03-29T14:58:15.68+00:00

    @WHS One You are absolutely right and apologies for the delay in my response.

    Currently, you cannot use the migration tool for your server migration. Reason is

    You are trying to migrate from SSPG 9.6(postgis 2.3) to FSPG 14 (postgis 3.0+)

    Postgis has done a major change from 2 to 3 versions. In version  2, there is a raster feature that you are using. From 3 versions the raster feature is a new extension and is not included in the PostGIS extension anymore. This is currently not supported by the migration tool

    As a workaround you can perform a manual migration using DMS - Tutorial: Migrate PostgreSQL to Azure Database for PostgreSQL online via the Azure portal - Azure Database Migration Service | Microsoft Learn

    A quick short summary on the pre-req for using the DMS tool- Before using this tool, you first need to create a target database manually. Next, you need to create all the required extensions including the postgis_raster extension on target db. Then they need to manually pg_dump and pg_restore your schema onto the target database. (I would recommend to go through the tutorial as well.)

    I hope this information is helpful

    Regards

    Geetha

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.