session_variable
Registration and manipulation of session variables and constants
Repository
splendiddata/session_variable
https://github.com/splendiddata/session_variable
Source
session_variable-3.4.tar.gz
session_variable-3.4.tar.gz
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
session_variable | 3.4 | SIM | GPL-3.0 | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 9120 | session_variable | No | Yes | No | Yes | No | No | session_variable |
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 3.4 | 1817161514 | session_variable | - |
| RPM | PIGSTY | 3.4 | 1817161514 | session_variable_$v | - |
| DEB | PIGSTY | 3.4 | 1817161514 | postgresql-$v-session-variable | - |
Build
You can build the RPM / DEB packages for session_variable using pig build:
Install
You can install session_variable 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
Create Extension:
Usage
session_variable: Registration and manipulation of session variables and constants
Creating Variables and Constants
Getting and Setting Values
Using in PL/pgSQL
Administration Functions
Key Behaviors
- Variables are defined at the database level; each session gets a local copy
set()only changes the session-local copy; other sessions are unaffectedalter_value()changes the stored value; new sessions see it, existing sessions needinit()to refresh- Constants cannot be changed via
set(), only viaalter_value() - Variable and constant names must be unique across both types
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)