uplpgsql
PL/pgSQL compiled to native code
Details
- External ID
- 48932582
- Source
- HN
- Company
- —
- Product
- uplpgsql
- Website domain
- github.com
- Launched
- July 16, 2026
- Cohort
- —
- Upvotes
- 10
- Upvotes percentile
- 0.5418160095579451
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:26 p.m.
- Updated at
- Sept. 7, 2026, 9:26 p.m.
Description
uplpgsql compiles PL/pgSQL to native code. It took over twenty years to get here, but here it is.On July 19, 2005, I demoed my optimizing PL/SQL compiler to Andy Astor, Denis Lussier, and Jim Mlodgenski at EnterpriseDB; PL/SQL packages, procedures, and functions ran on Postgres at native speed, not interpreted. While they didn't acquire it, they brought me on as a founding engineer focused on Oracle Database compatibility and performance.Then, on November 20, 2014, long after we'd both left, Denis suggested I make it a universal PL compiler that didn't care which dialect it was handed, with front-ends for PL/pgSQL, PL/SQL, SQL/PSM, and T-SQL. "Build it on top of your compiler," he said, "and call it the Universal Procedural Language." I did, but I kept it closed.uplpgsql is the modern PL/pgSQL version of that compiler, built using AI-assisted analysis and reconstruction of my prior work, now JIT-based and Apache licensed.Why? Because normal PL/pgSQL is a tree-walking interpreter: every IF, every loop iteration, every assignment costs a switch dispatch and call through exec_stmt. Postgres' built-in JIT doesn't help. uplpgsql compiles the control flow itself to native code through its own LLJIT instance. It has multi-tiered optimizations from truly native to direct Postgres function calls to helpers to an interpreted worst case. Postgres doesn't even need to be built --with-llvm.Independent benchmarks show 2-4x on ordinary stored procedures and up to 22x on heavy procedural and numerical work. Some functions are currently slower than interpreted; we're working on those regressions.Super-pre-alpha WIP. Building against PostgreSQL 20devel. Keep it away from anything and everything you care about. It's under heavy development by Joshua Drake (JD) of Command Prompt and me, with several other Postgres companies joining the effort.Still want to play with it? Build and use LANGUAGE uplpgsql instead of plpgsql. Docker coming soon.
Enrichment
- Theme
- database infrastructure and developer tools
- Vertical
- Horizontal
- Function
- Dev tools
- Audience
- Developer
- AI stance
- Not AI
- Project type
- Hobby / open-source project
- Normalized one-liner
- plpgsql compiler to native code
- Manually corrected
- False
Could you build this?
No Compiling PL/pgSQL directly into native machine code requires specialized compiler engineering and deep low-level mastery of PostgreSQL's internal C runtime architecture.
What it would actually take: Requires deep systems and database engineering expertise in C, LLVM IR generation, and PostgreSQL backend internals. The compiler must parse PL/pgSQL ASTs, translate procedural control flow and SPI (Server Programming Interface) queries into native machine instructions, and integrate with Postgres memory contexts and transaction management.
Discussion
No comments on this launch.
Competitors
Other products that read as similar to this one — 137 launches clear the similarity bar, closest 8 shown.
Attention rank: #71 of 138 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 259 days after the earliest competitor.
- Dbctx · hn · 2026-08-11 · 5 upvotes · similarity 0.56
- I'm not a PostgREST fan this is why I'm building an alternative · hn · 2026-09-09 · 5 upvotes · similarity 0.55
- Pg-typesafe · hn · 2026-02-17 · 69 upvotes · similarity 0.52
- PostgreSQL Migrator · ph · 2026-09-17 · 2 upvotes · similarity 0.51
- Pgrust, Postgres in Rust (passing 100% of Postgres regression tests) · hn · 2026-06-25 · 6 upvotes · similarity 0.49
- VillageSQL = MySQL and Extensions · hn · 2026-02-05 · 27 upvotes · similarity 0.48
- Skillancy Compilers · ph · 2026-09-30 · 1 upvotes · similarity 0.48
- pg-jev · github · 2026-09-17 · 274 upvotes · similarity 0.47
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a dev tools tool for Sales yet.