Paste your T-SQL (SQL Server) and get an instant syntax audit for PostgreSQL. Spot invalid JOINs, incompatible functions, and dangerous queries before running in production.
Upload your repositories in Java, C# (.NET), JavaScript, Python, or PHP and our tool extracts, analyzes, and pinpoints exactly which classes in your system will break after the database migration.
@Query(value = """
SELECT TOP 100 p.* FROM dbo.Pedidos p
INNER JOIN dbo.Clientes c ON c.Id = p.ClienteId
WHERE p.Data > DATEADD(month, -6, GETDATE())
""", nativeQuery = true)
List<Pedido> findRecentes();โ We found a risky query
dbo. ยท TOP ยท DATEADD ยท DELETE/JOIN pattern โ incompatible with PostgreSQL
Java
@Query, @NamedNativeQuery, JDBC strings
C# .NET
Dapper, EF FromSqlRaw, @"verbatim"
JS / TS
Template literals, Sequelize, pg
Python
Django .raw(), cursor.execute
PHP
PDO, sqlsrv, $sql variables
Paste your T-SQL on the left โ risk appears on the right instantly.
Lines 1โ5: DELETE with INNER JOIN
PostgreSQL rejects JOIN directly in DELETE. Requires a USING clause.
Line 13: Computed column AS (expr)
Requires GENERATED ALWAYS AS (expr) STORED in PostgreSQL.
Line 1: dbo. prefix (schema)
dbo. does not exist by default in PostgreSQL โ use public. or remove it.
Line 18: DATEDIFF does not exist in PostgreSQL
Use (d2::date - d1::date) or EXTRACT depending on the unit.
DELETE FROM funcionarios t
USING pagamentos p
WHERE t.funcionario_id = p.func_id
AND p.status = 'CANCELADO';
CREATE TABLE funcionarios (
id SERIAL PRIMARY KEY,
liquido NUMERIC GENERATED ALWAYS AS
(salario - COALESCE(desconto, 0)) STORED
);Each of these patterns is accepted in SQL Server and causes immediate failure in PostgreSQL.
T-SQL accepts DELETE t FROM Table t JOIN. PostgreSQL rejects direct JOIN โ requires USING.
PostgreSQL has no native PIVOT. Matrix reports require SUM(CASE WHEN...) + GROUP BY.
DATEDIFF and GETDATE() do not exist in PostgreSQL. NOW() does not exist in SQL Server.
BEGIN TRY and @@ROWCOUNT do not exist in PL/pgSQL โ code compiles but silently ignores errors.
3 steps from risk to certainty.
Upload SQL scripts or source files (.java, .cs, .pyโฆ) โ we extract hidden queries. Nothing is stored.
Visual diagnosis with compatibility %, mapped critical points, and expert notes.
Download the full PostgreSQL script โ semantics preserved, indexes kept, procedures restructured.
Per-file credits โ one-time payment, no subscription.
Free
$0
3 files ยท up to 1000 lines per file
Business
$199.00
100 files
up to 10000 lines per file
One-time payment โ credits never expire
Buy credits