
Security News
arXiv Is Rate Limiting Authors Following a Flood of AI Slop Submissions
arXiv now limits authors to two submissions a month as AI slop overwhelms moderators, delays good papers, and sparks debate over applying the limit to everyone.
@pgsql/transform
Advanced tools
@pgsql/transform is a TypeScript library for transforming PostgreSQL ASTs between different PostgreSQL versions. It serves as a crucial component for building a single source of truth deparser that can handle SQL from multiple PostgreSQL versions while maintaining backward compatibility.
The transform package enables you to:
This package only supports ASTs derived from SQL that is parseable by PostgreSQL 17. This means:
This design ensures all transformed ASTs can be reliably deparsed using the latest PostgreSQL grammar.
npm install @pgsql/transform
import { ASTTransformer } from '@pgsql/transform';
const transformer = new ASTTransformer();
// Transform any version to PG17
const pg17Ast = transformer.transformToLatest(pg13Ast, 13);
// Transform between specific versions
const pg15Ast = transformer.transform(pg13Ast, 13, 15);
// Convenience methods
const result = transformer.transform13To17(pg13Ast);
For better performance when you know source and target versions:
import { PG13ToPG17Transformer } from '@pgsql/transform';
const transformer = new PG13ToPG17Transformer();
const pg17Ast = transformer.transform(pg13Ast);
import { parse } from '@pgsql/parser';
import { deparse } from 'pgsql-deparser';
import { PG13ToPG17Transformer } from '@pgsql/transform';
// Parse with older version
const pg13Ast = await parse('SELECT * FROM users', { version: 13 });
// Transform to latest
const transformer = new PG13ToPG17Transformer();
const pg17Ast = transformer.transform(pg13Ast);
// Deparse with latest grammar
const sql = await deparse(pg17Ast);
Incremental: PG13 → PG14 → PG15 → PG16 → PG17
Direct: PG13 → PG17, PG14 → PG17, etc.
| From | To | Transformer |
|---|---|---|
| PG13 | PG14, PG15, PG16, PG17 | V13ToV14Transformer, PG13ToPG17Transformer |
| PG14 | PG15, PG16, PG17 | V14ToV15Transformer, PG14ToPG17Transformer |
| PG15 | PG16, PG17 | V15ToV16Transformer, PG15ToPG17Transformer |
| PG16 | PG17 | V16ToV17Transformer, PG16ToPG17Transformer |
The transform package fits into the broader pgsql-parser ecosystem:
This enables a single source of truth for SQL generation while supporting legacy codebases.
🛠 Built by the Constructive team — creators of modular Postgres tooling for secure, composable backends. If you like our work, contribute on GitHub.
pgsql-parser.pgsql-parser for parsing and deparsing SQL queries.AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.
No developer or entity involved in creating Software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the Software code or Software CLI, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value.
FAQs
AST-based SQL transformation, qualification, classification and closure analysis for PostgreSQL
The npm package @pgsql/transform receives a total of 4,268 weekly downloads. As such, @pgsql/transform popularity was classified as popular.
We found that @pgsql/transform demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
arXiv now limits authors to two submissions a month as AI slop overwhelms moderators, delays good papers, and sparks debate over applying the limit to everyone.

Research
/Security News
A new GhostAction wave hits hundreds of GitHub repos, expanding CI/CD secret theft to cloud and AI credentials in source code and git history.

Research
/Security News
Tensorlake npm SDK version 0.5.144 was compromised in a ChainDrop / Shai-Hulud attack, delivering credential-stealing malware.