Verify

Acceptance testing for your PostgreSQL migration

Bring PostgreSQL scripts from your developers, a systems integrator, or another conversion tool. Logic Proof runs the delivered code against the Oracle or SQL Server source it replaces. Both teams can see what passed, what behaved differently, and what the delivery left out.

Oracle to PostgreSQL

What the HR team received

  • Oracle source
    EMP_ADMIN.HIRE (4 inputs)
    PostgreSQL delivery
    emp_admin.hire (4 inputs)
    Import result
    Matched
  • Oracle source
    EMP_ADMIN.HIRE (5 inputs)
    PostgreSQL delivery
    emp_admin.hire (5 inputs)
    Import result
    Matched
  • Oracle source
    JOB_HISTORY
    PostgreSQL delivery
    No definition supplied
    Import result
    Missing
  • Oracle source
    No source object
    PostgreSQL delivery
    hr.normalize_email
    Import result
    Helper

Selected entries from the HR integration test. The hiring procedure uses the helper to trim and lowercase email addresses. The integrator assigned job history to a separate reporting database.

A successful hire can write the wrong second

The HR hiring procedure can complete on both databases and record a different time in the employee row. Oracle writes SYSDATE to HIRE_DATE, discarding fractional seconds. The PostgreSQL delivery uses localtimestamp(0), which rounds. A call in the second half of a second can land one second later on PostgreSQL. The row comparison identifies the column and the value each database stored.

Oracle hire date
SYSDATE
Imported PostgreSQL hire date
localtimestamp(0)
Trace a failing object through repair

Match the objects in the handoff

Start with one source SQL file or a ZIP archive, then import the PostgreSQL scripts. Select the target naming convention and any schema or object renames. Logic Proof recognizes Oracle package members and uses parameter counts to distinguish overloaded routines. When more than one candidate fits, you resolve the match before creating a revision.

Generate the data and cover the branches

The engine generates related rows from your schema and loads identical data into both test databases. For procedures and functions, it analyzes branch conditions, solves for arguments, and samples values from the source test tables so lookups can find matching rows. The coverage view identifies branches with passing or failing tests and those that still need a case.

Check what a caller can observe

The test engine loads the same generated rows into both staging databases and exercises both implementations with the same inputs. It compares returned rows, function results, output parameters, and changes to tables. A refusal can be part of the contract, too. If the source raises an application error and the target silently accepts the call, the test fails.

Read the verdict before signing off

Passed means the target object was created and every required test passed on this revision. Failed identifies code PostgreSQL could not create or a test that found a difference. A view that returns zero rows on both sides is Inconclusive. A disabled trigger can be Skipped, and an implementation awaiting its first run is Not evaluated. Reviewers can see where they need a code change, a better test case, or a decision about scope.

What the comparison can tell you

Can the correct outcome be an error?

Yes. An Oracle or SQL Server procedure may deliberately reject an operation, for example when a caller tries to post to a closed period. That refusal is part of the application contract. Logic Proof compares application-raised messages after removing the wrappers each engine adds.

The case fails if PostgreSQL silently accepts the operation or raises a different application message. A failure to set up a valid source case can instead leave the comparison inconclusive. Inspect both sides before changing the translation.

How do you test a trigger or an Oracle package?

A trigger test performs the event that fires the trigger on both databases. Logic Proof compares the affected table and the other tables the trigger writes. A disabled trigger stays disabled and is identified as skipped.

For package routines, verification resets package state before each test so that a previous call cannot supply a value by accident. If your application deliberately keeps package state across a sequence of calls, review that sequence separately. A test of one call establishes what happens from its starting state.

What if the generated data leaves a view empty?

Two empty result sets provide little evidence about a view’s joins or expressions. Logic Proof marks the empty comparison inconclusive. Start with the underlying tables and the view’s filters to see which rows the case needed.

When a table fails to load consistently on both sides, the engine traces the objects that depend on it. Their comparisons are inconclusive. A separate routine whose inputs loaded correctly can still earn a pass.

What does your team need to verify?

Tell us which database you’re moving, how far the PostgreSQL code has come, and which behaviors matter most at cutover.

Cookie settings

Choose what Spectral Core can use on this browser. You can change your choices at any time.

Essential storageRemembers your privacy choices.
Always on