aiven_extras
aiven_extras · Aiven PostgreSQL extras for non-superuser access to selected database features.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100950 | aiven_extras | aiven_extras | 1.1.20 | SEC | Apache-2.0 | C |
PostgreSQL · 12, 13, 14, 15, 16, 17, 18
Usage
Sources:
- Aiven Extras README at the reviewed commit
- Control template at the reviewed commit
- Build version at the reviewed commit
aiven_extras is an Aiven-maintained collection of narrowly scoped wrappers for operations that normally require elevated PostgreSQL privileges. After a privileged operator installs it, eligible non-superusers can administer selected logical-replication objects, configure session-local auto_explain, adjust selected pgaudit settings, and run controlled dblink operations. It installs into the fixed aiven_extras schema and does not grant general superuser access.
Logical Replication Workflow
The calling role still needs REPLICATION. Use schema-qualified table names and restrict execution privileges on the wrappers to the operational roles that need them.
The replication surface includes pg_create_publication, pg_create_publication_for_all_tables, pg_create_subscription, pg_drop_subscription, pg_alter_subscription_enable, pg_alter_subscription_disable, pg_alter_subscription_refresh_publication, pg_list_all_subscriptions, and pg_stat_replication_list. Subscription creation still performs network and replication-slot work; it is not made transactional by the wrapper.
Session Diagnostics
auto_explain_load loads auto_explain for the current session. The set_auto_explain_* family then changes that session’s settings only.
Other exposed helpers include claim_public_schema_ownership, dblink_record_execute, dblink_slot_create_or_drop, explain_statement, session_replication_role, set_pgaudit_parameter, and set_pgaudit_role_parameter.
Operational Notes
- The current reviewed Makefile identifies version
1.1.20, matching the catalog. Pin the provider package or source commit whose behavior you tested. - Publication and subscription wrappers are privileged interfaces, not a privilege bypass. Audit their grants and revoke
PUBLICexecution where the deployment’s role model requires it. - Subscription connection strings can contain credentials. Keep them out of logs, query history, and error-reporting pipelines, and prefer provider-supported secret handling.
- Enabling plan analysis can add execution overhead and expose query text or values in logs. Use
auto_explainselectively, especially with analysis enabled.