pg-rls-util

JSON →
library 0.0.41 ·javascript
verified Jun 5, 2026

pg-rls-util is a CLI tool that generates PostgreSQL Row-Level Security (RLS) policies based on configuration files. It supports generating scripts for tables, functions, roles, and ownership. Current stable version is 0.0.41, with infrequent releases. Key differentiators include automated generation from database introspection, diff capability, and support for multiple schemas and profiles. It is designed for PostgreSQL projects with complex RLS requirements, such as Graphile Starter setups.