Skip to content

PostgreSQL server-side extension - provides user variables local to current connection.

License

Notifications You must be signed in to change notification settings

IggShaman/pg_uservars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Copyright (c) 2010 Igor Shevchenko <[email protected]>


Installation:

# make
# make install

Installation to db:

psql -f /path/to/pgsql/share/contrib/pg_uservars.sql DBNAME

Usage:

1. Create new variable/value, or change value for an existing variable:

select pguser_setvar('varname', 'some value');

Returns: TRUE

2. Get value:

select pguser_getvar('varname');

Returs: variable's value, "TEXT" type.

3. Remove variable:

select pguser_delvar('varname');

Returns: TRUE

About

PostgreSQL server-side extension - provides user variables local to current connection.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published