noset
Module for blocking SET variables for non-super users.
Repository
https://gitlab.com/ongresinc/extensions/noset
https://gitlab.com/ongresinc/extensions/noset
Source
noset-v0.3.0.tar.gz
noset-v0.3.0.tar.gz
Overview
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 7420 | noset | No | Yes | Yes | Yes | No | Yes | - |
| Related | pg_command_fw pg_kpart pgextwlist block_copy_command supautils plan_filter safeupdate pg_readonly sepgsql pg_strict |
|---|
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 0.3.0 | 1817161514 | pg_noset | - |
| RPM | PIGSTY | 0.3.0 | 1817161514 | noset_$v | - |
| DEB | PIGSTY | 0.3.0 | 1817161514 | postgresql-$v-noset | - |
Build
You can build the RPM / DEB packages for pg_noset using pig build:
Install
You can install pg_noset directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Preload:
Create Extension:
Usage
noset: Prevent users from changing session parameters via SET/RESET
noset is a loadable module that prevents specific users from using SET or RESET commands to change session parameters.
Configuration
Add to postgresql.conf:
GUC Parameters
| Parameter | Default | Description |
|---|---|---|
noset.enabled | false | Enable SET/RESET blocking for the role |
noset.parameters | * | Parameters to block (comma-separated, * = all) |
Setting Up Per-User Restrictions
Example
Finding Restricted Users
Notes
- Does not apply to superusers
- The extension revokes access to the
set_configfunction from PUBLIC
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)