MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.28k stars 21.47k forks source link

Azure Postgres Migrattion steps not clear #98976

Closed rhuesken closed 3 weeks ago

rhuesken commented 2 years ago

I'm trying to follow this guide in order to migrate an entire (Azure Postgres flexible) server, with multiple databases and multiple schema's in each database. I also need to migrate several roles from the source database.

Step1 and 3 (use pg_dump to create and restore a schema for a database) are not clear.

  1. Which user should be passed to this pg_dump command?
  2. The option -o is not supported by pg_dump (PG13). I assumed this is should be -O (capital letter). Is that correct?
  3. The pg_dump -O option does not set ownership when recreating the objects in the target database. How will object ownerschip be restored?
  4. Using the pg_dump -O option results in statements that set priviliges for roles, yet no create role commands are included in the script. What are the prerequisites to migrate roles too?

Also please describe the expected result of "Migrate Sample schema step". This will allow me to achieve this result in an alternative way, and safely proceed with subsequent steps.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

SaibabaBalapur-MSFT commented 2 years ago

@rhuesken Thanks for your feedback! We will investigate and update as appropriate.

shaktisingh-msft commented 2 years ago

Hi @croblesm,

Could you please look into this documentation enhancement request.

croblesm commented 2 years ago

Hey @adityaduvuri_microsoft, let's work on this issue together.

SaibabaBalapur-MSFT commented 2 years ago

I have reassigned case to @croblesm

@adityaduvuri_microsoft Please can you help me with your Github user ID, so we can assign case to you, Thanks you.

croblesm commented 1 year ago

Here you have Aditya's ID: @apduvuri

rwestMSFT commented 3 weeks ago

This question is more than 18 months old, with no activity, so I am closing it. If you feel that your question still should be answered, please either open a Support request, or use the Feedback option on the article in question. GitHub issues for azure-docs will be disabled in the near future.

please-close