ELSEIF
Your brief EB
331 stories from 97 feeds 278 clusters Refreshed 14 minutes ago next pull 15:21

DATABASES Signal 263

plx transpiles Ruby, PHP, and other dialects to plpgsql at CREATE FUNCTION time

Illustration only Photo by Mario Gogh on Unsplash

plx is a PostgreSQL extension that transpiles function bodies written in dialects like Ruby, PHP, and JavaScript to plpgsql at CREATE FUNCTION time, storing the result in pg_proc.prosrc.

WHY IT MATTERS

For engineers who want to move logic into PostgreSQL without learning plpgsql, plx offers a familiar syntax while keeping plpgsql's performance and trusted-language safety. Because the generated plpgsql is stored in pg_proc.prosrc, it is inspectable and pg_dumpable, and no separate language runtime is loaded into the backend. The translation cost is paid once at creation time, not per call.

Written by elseif from the cluster below · every claim links back to a source

The three things worth knowing

01

plx transpiles the function body to plpgsql at CREATE FUNCTION time and stores it in pg_proc.prosrc.

02

The extension supports dialects including Ruby, PHP, JavaScript, Python, COBOL, PL/SQL, TypeScript, T-SQL, and Go.

03

No separate language runtime is loaded; the function executes via PostgreSQL's own plpgsql interpreter.

THE CLUSTER

Same story, 1 feed.

ORDERED BY FIRST SEEN
PostgreSQL plx : Write PostgreSQL functions in the language you already know. Open ↗