Show HN: pg_raw_parse – parse SQL in Rust at Postgres speed
Category: library
Tags: rust, postgresql, sql-parser, ast, ffi, performance
Score: 7.5/10 (Innovation: 6, Technical: 9, Documentation: 9, Utility: 6)
pg_raw_parse is a Rust library that provides direct access to PostgreSQL's parser, achieving 20-60x speedup and 90% less memory usage compared to pg_query.rs by avoiding protobuf serialization and using PostgreSQL's arena allocator. It offers parse, deparse, normalize, and AST manipulation capabilities with a memory-safe API using lifetime branding.
Target audience: backend developers, database tooling developers, Rust developers
Repository: https://github.com/pgdogdev/pg_raw_parse · Rust · Apache-2.0 · 48 stars
View on Hacker News