supautils
supautils : Extension that secures a cluster on a cloud environment
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 7010 | supautils | supautils | 3.2.1 |
SEC | Apache-2.0 | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --sL--- | No | Yes | Yes | No | no | no |
| Relationships | |
|---|---|
| See Also | pg_command_fw pgextwlist block_copy_command pg_kpart noset sepgsql |
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PIGSTY | 3.2.1 |
18 17 16 15 14 | supautils |
- |
| RPM | PIGSTY | 3.2.1 |
18 17 16 15 14 | supautils_$v |
- |
| DEB | PIGSTY | 3.2.1 |
18 17 16 15 14 | postgresql-$v-supautils |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
| el8.aarch64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
| el9.x86_64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
| el9.aarch64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
| el10.x86_64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
| el10.aarch64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
| d12.x86_64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
| d12.aarch64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
| d13.x86_64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
| d13.aarch64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
| u22.x86_64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
| u22.aarch64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
| u24.x86_64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
| u24.aarch64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
| u26.x86_64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
| u26.aarch64 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 | PIGSTY 3.2.1 |
Source
github.com/supabase/supautils
supautils-3.2.1.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Config this extension to shared_preload_libraries:
This extension does not need CREATE EXTENSION DDL command
Usage
Sources: README, homepage, releases
supautils is a loadable library that unlocks selected superuser-only PostgreSQL features for non-superusers through configuration. Upstream emphasizes that it adds no tables, functions, or security labels to the database.
Load it
Cluster-wide:
Per role:
Privileged role capabilities
The README documents a privileged proxy role that can create publications, foreign data wrappers, event triggers, and privileged extensions without granting SUPERUSER.
For event triggers, the README says privileged-role triggers run for non-superusers, skip superusers, and also skip reserved roles. It also documents one limitation: those triggers do not fire while creating publications, foreign data wrappers, or extensions.
Important configuration knobs
supautils.superusersupautils.privileged_rolesupautils.privileged_role_allowed_configssupautils.privileged_extensionssupautils.extension_custom_scripts_pathsupautils.constrained_extensionssupautils.extensions_parameter_overridessupautils.policy_grantssupautils.drop_trigger_grantssupautils.reserved_rolessupautils.reserved_membershipssupautils.hint_rolessupautils.log_skipped_evtrigs
Useful examples
Allow a non-superuser to create specific privileged extensions:
Allow a role to manage RLS policies on tables it does not own:
Force an extension into a specific schema on CREATE EXTENSION:
Protect managed-service roles from CREATEROLE users:
Release notes
v3.2.1was released on 2026-04-02 and its published notes are maintenance-oriented; no new user-facing SQL surface is described there.v3.2.0added a hint when aGRANTprivilege is missing.
Caveat
This extension is configuration-driven. When documenting it, prefer the GUCs and behavior guarantees in the README over implying database objects that upstream explicitly says it does not create.