Review converted objects in Conversion Object Explorer

Use Conversion Object Explorer to review and refine Oracle to Azure PostgreSQL schema conversion results. The explorer shows source objects alongside their target names, types, and statuses. Each object opens a source-to-target comparison, with Copilot actions to explain the conversion or help change the generated PostgreSQL file.

For instructions on opening the explorer from a completed conversion, see Review and refine converted objects in the tutorial.

Find and inspect objects

Use the filters above the results table to narrow the objects you want to review:

Control Purpose
Filter by source object name Find an object by its Oracle source name.
All schemas Narrow the results to a source schema.
All source object types Narrow the results by Oracle object type.
All statuses Narrow the results by the statuses available for the conversion.

Read Schema, Source type, and Source object together to identify the Oracle object. Compare Target object and Target type to understand its PostgreSQL mapping. The Status column shows the object's recorded conversion result.

Use the page controls below the table when the results span more than one page.

Screenshot of Conversion Object Explorer with filters, statuses, Ask, Fix, Resolve, and the Refresh icon.

Choose an action

Use the following controls to understand and correct objects, update their recorded statuses, and refresh reports:

Action Purpose
Ask Ask Copilot to explain an object's conversion and dependencies.
Fix Use Copilot to correct an object and its dependent objects. Corrected dependent objects are resolved automatically after successful compilation.
Resolve Change an object's recorded status to Converted.
Refresh (circular-arrow icon) Update conversion reports to reflect the revised object statuses.

Ask and Fix use Copilot Chat. Resolve is a status action, not an AI prompt or compilation command. Refresh doesn't rerun conversion or deployment. Complete Copilot sign-in before using the assisted actions.

If an expected source object isn't listed, check Discovery and extraction results. An excluded or unextracted object might not have a target file or an object-level action.

Review packages and other multi-statement objects

Packages and some other source objects can produce multiple PostgreSQL statements. Expand the parent object to inspect the associated entries instead of treating the conversion as a single PostgreSQL statement.

Inspect package members

Use the package hierarchy to work through individual members and their respective PostgreSQL equivalents:

  1. Locate the package by using the schema and source object name filters above the main table.
  2. Select the chevron next to the package to expand its member entries.
  3. Review each member's source-to-target mapping, including its Oracle source type and PostgreSQL target type.
  4. Select the member you want to inspect, and review its source-to-target comparison and Conversion notes.

Review the members individually to understand the changes made for each one. A package-level view helps you locate the members, but doesn't replace reviewing their generated definitions.

Filter members by source object type

For a package with many members, use the object-type filter within the expanded package to focus on one Oracle source member type at a time. The filter uses the member's Oracle source type, not its PostgreSQL target type.

The two object-type filters serve different purposes:

Filter location What it filters
All source object types above the main table Source objects in the main results list.
Object-type filter within an expanded package Members of that package by Oracle source type.

After reviewing one member type, change or remove the member-type filter to review the remaining members.

Expand and collapse the hierarchy

Use the expand-all and collapse-all controls at the level you're reviewing:

Level Purpose
Explorer Expand or collapse expandable objects across the explorer together.
Package Expand or collapse members within that package together.

Use an expandable object's chevron when you only want to expand or collapse that object.

Compare definitions and read conversion notes

Select an object to open its diff view. The Oracle definition appears on the left, and the generated PostgreSQL definition appears on the right. Review the comparison to understand changes to names, types, parameters, and database-specific constructs.

Read the Conversion notes panel alongside the definitions. The notes provide context about the conversion and differences that need your attention. Review them for converted objects as well as objects that need correction.

Screenshot of an Oracle-to-PostgreSQL diff view with the source definition, generated definition, and Conversion notes panel.

Locate the generated SQL

Use the PostgreSQL side of the comparison to identify the generated definition and its file path. In the workspace Explorer, open .github\postgres-migrations\<migration-project> and locate the matching file in postgres_ddl. Check the project and source-to-target mapping rather than choosing a file only by its basename: one source object can produce multiple target definitions.

Setup reads the latest saved contents of these tool-generated files. Save manual edits and Fix corrections in the mapped files in postgres_ddl; files added manually to that folder are ignored by Setup. Review Identify the SQL to deploy for deployment scope and preparation.

Ask Copilot to explain a conversion

Select Ask for an object to ask GitHub Copilot to explain its conversion, including its dependencies. Use the explanation together with the diff view and conversion notes to understand how the PostgreSQL definition relates to the Oracle source.

Review Copilot's explanation against the definitions and your application's requirements before making changes.

Fix an object and its dependencies

Fix opens a Copilot prompt with the object's details. Copilot helps correct the PostgreSQL definition and its dependent objects. After successful compilation, the corrected dependent objects are resolved automatically and their status becomes Converted.

When multiple connections are configured in the PostgreSQL extension, executing SQL through Fix opens a connection-selection prompt. For corrections in the schema validation database, select the connection used earlier for schema validation, then select the database containing the converted schema in the subsequent database-selection popup. For a schema deployed elsewhere, select the connection and database containing that deployed schema.

To correct an object and review the dependent changes:

  1. Select Fix for the object you want to change.

    In the following example, Copilot opens the Fix prompt, and the selected object is still Not converted.

    Screenshot of the Fix prompt in Copilot Chat beside a selected object that is still marked Not converted.

  2. Work with Copilot to make the required corrections. Review the updated definitions for both the selected object and its dependent objects.

  3. Review the compilation results and address any reported errors. Verify that the correction was applied in the selected database and save the corrected object and dependency definitions in the tool-generated files under the current project's postgres_ddl folder.

  4. Select Refresh to update the conversion reports after the objects are resolved.

Compile manual edits

Use an object's diff view in Conversion Object Explorer to review and execute manual corrections. Choose a database on Azure Database for PostgreSQL flexible server or Azure HorizonDB, and confirm that the required schemas and dependencies are available. To prepare that database, see the Setup Experience.

For an existing table, CREATE TABLE IF NOT EXISTS doesn't apply changes to its definition. Execute reviewed ALTER TABLE statements separately in the query editor, and keep the corrected creation definition in the matching tool-generated file in postgres_ddl for future deployments.

The play button in the diff view executes all SQL on the PostgreSQL side. Selecting text doesn't limit execution. The diff view can reuse a previous connection and database without prompting.

To compile a manual correction in the selected database:

  1. In Conversion Object Explorer, select the object to open its diff view.
  2. Make the correction and save the matching tool-generated file in postgres_ddl. Review the updated PostgreSQL definition on the right side of the diff view.
  3. Review the schema references and every statement on the PostgreSQL side of the diff view.
  4. Before selecting play, verify the active connection and database, and change them if needed. For corrections in the schema validation database, use the connection and database selected earlier for schema validation. For a schema deployed elsewhere, use its connection and database.
  5. Select the play button in the diff view. If prompted, select the intended connection, then the database containing the converted schema.
  6. Review the execution output. Correct any reported errors and review the updated PostgreSQL definition before executing it again.

Editing a file and applying it to a database are separate steps. Verify that the correction was applied in the selected database and that the corrected object definition is saved in its tool-generated file under postgres_ddl. Setup reads the latest saved contents of these files when deployment runs.

Resolve objects and refresh reports

Use Resolve when a corrected object needs a manual status update:

  1. After correcting an object and confirming successful compilation, select Resolve. The extension marks it Converted and automatically moves its .sql file from postgres_ddl\_drafts to its mapped location under postgres_ddl.
  2. Select Refresh in Conversion Object Explorer to update the conversion reports with the revised statuses.
  3. Review the updated report before sharing the conversion results or continuing deployment preparation.

Dependent objects resolved automatically after a successful Fix compilation don't need another manual status update. Use Refresh to update the reports after either automatic or manual resolution.

Resolve updates the recorded conversion status; it doesn't compile SQL, open Copilot Chat, or deploy it. Neither a status update nor refreshed reports establish equivalent application behavior, deployment inclusion, or deployment to another database.

Example: Correct an object and update its report

Suppose a procedure is Not converted and its notes identify an unresolved reference to another function.

  1. Open the procedure's comparison and notes. Use Ask to understand the reference and the target mapping.
  2. Use Fix to correct the procedure and any affected dependency. Review every proposed edit and its compilation result. If the required source definition wasn't extracted, obtain or implement it rather than accepting a guessed replacement.
  3. Confirm that the intended files in postgres_ddl contain the tested changes. Successful Fix compilation automatically resolves corrected dependent objects. Use Resolve only for a corrected object that still needs a manual status update.
  4. Select Refresh, reopen the HTML report, and verify the procedure and affected dependencies by name. Their revised statuses can change the conversion totals; Discovery and extraction describe the earlier source stages.
  5. Review deployment inclusion, deploy the intended changes, and test representative calls. An updated Converted status isn't evidence that the procedure is deployed or functionally equivalent.

Validate beyond compilation

Successful compilation doesn't establish that the converted object behaves the same as its Oracle source. Before production deployment, independently test data handling, business logic, dependencies, and application behavior with the converted schema.