Move to PostgreSQL.
Keep your business logic.
Logic Proof builds matching test databases from your schema and generates tests from the decisions in your stored code. It runs the original and PostgreSQL implementations side by side, then uses those tests to check every proposed repair and optimization.
1 / Establish the revision
Start with the code you have.
We have the original SQL.
Supply your source scripts or read the definitions through a database connection. SQL Tran’s deterministic engine translates the schema and stored code to PostgreSQL. Logic Proof captures that translation as the first revision to test.
Modernize from sourceWe already have a translation.
Import the PostgreSQL scripts alongside the original definitions. Logic Proof matches the supplied code to its source objects and flags ambiguous or missing implementations. Once you resolve the matches, that handoff becomes the revision under test.
Verify an existing translation2 / Generate synthetic data
Give both databases the same customers, orders, and keys.
Logic Proof creates the source schema and its PostgreSQL translation in dedicated test databases. The generator reads column types, primary and unique keys, foreign keys, and supported check constraints. It creates a single set of synthetic rows and loads it on both sides.
Those relationships matter. An order points to a customer that exists. A routine that looks up that customer can reach the calculation after the lookup. You choose the row count for the run without copying production records.
Explore how SQL Tran generates test data3 / Full code coverage testing
Test each decision in the stored code.
SQL Tran analyzes each routine’s branches and solves their conditions to choose arguments. When a branch depends on a lookup, the generator samples values from the populated source test tables. The coverage view links branches to their tests and shows where coverage is still missing or uncertain.
Logic Proof runs the cases on Oracle or SQL Server and on PostgreSQL. It compares table and view rows, return values, output parameters, application errors, and the rows changed by a procedure or trigger. A call can succeed on both engines and still write a different value.
What to inspect in your first runOracle to PostgreSQL · Hiring procedure
Both databases hire the employee. Which month gets the hire?
The Oracle procedure writes the hire date with SYSDATE, which drops fractional seconds. The PostgreSQL translation uses localtimestamp(0), which rounds to the nearest second. Both inserts succeed.
Time of hire July 31 at 23:59:59.750
- Oracle hire date
- July 31 · 23:59:59
- PostgreSQL hire date
- August 1 · 00:00:00
A July report that selects hires before August 1 includes this employee on Oracle. On PostgreSQL, the same employee falls into August.
The HR integration test compares the HIRE_DATE written by each procedure. The times above illustrate the boundary it checks.
4 / Repair and retest
Every proposed fix goes back through the tests.
Follow a failure into the code.
The AI examines the source, the translation, and the failing case. Logic Proof tries its proposed SQL in staging and retests the affected objects. A fix that passes its own tests and breaks a previously passing caller is rejected. The next attempt gets the reason.
See how repairs are testedChallenge a passing routine.
The AI can propose inputs the existing tests missed. Both databases execute the new case, with the source supplying the expected result. When their answers differ, Logic Proof tries simpler inputs and keeps the case so future revisions have to pass it.
Explore challenge testing5 / Optimize and retest
Can PostgreSQL do the same work faster?
Measure the same call
For eligible passing objects, agents warm up each database and time repeated executions on the test data. The optimizer uses the SQL, timings, and available execution plans to propose a rewrite, an index, or both.
Retest the change
The candidate must still pass the object’s behavior tests. Previously passing objects affected by the rewrite or indexed table must pass again. Only then does Logic Proof time the candidate.
Keep a measured gain
The median must improve by more than the gap between the PostgreSQL baseline’s median and its 95th percentile. The candidate’s 95th percentile must also hold steady or improve. Accepted changes become a revision your team can review and apply.
What to look for in your first verification run
Can we start with one business operation?
Choose a routine with an outcome your team understands. Include the tables it reads and writes, the functions it calls, and any triggers that fire on those writes. Supply their definitions so both test databases can build the operation and the generator can populate the relationships it needs.
Start the review with the values returned to the caller and the rows left behind. For a hiring procedure, for example, a successful call is only part of the contract. The stored hire date also determines which reporting period includes the employee.
What should we inspect if coverage is incomplete?
Open the routine and look at the conditions governing the uncovered branch. An argument may satisfy a numeric condition yet match no row in the test database. Check the generated rows and the arguments together, especially where a lookup or join precedes the decision.
The planner solves branch conditions and selects cases within a test budget. A test of a nested branch can also exercise its enclosing branch. The coverage view lets you inspect the cases associated with a branch and see where an outcome is still undetermined.
How can we tell which revision was actually tested?
An imported revision identifies both the PostgreSQL definitions and their mappings to source objects. The history records when a revision was applied and which run tested it. Review the object in that revision to see the definitions and outcomes that belong together.
During a run, individual results appear as work finishes. The final object verdict comes from the finished run. If a run stops partway through, the previous finished verdicts remain available while you investigate the interruption.
Run the tests in your environment.
Connect dedicated Oracle or SQL Server and PostgreSQL test databases through agents in your network. Your team chooses where the code runs and which model providers the project can use.