proposal: custom variables management - Mailing list pgsql-hackers

From Pavel Stehule
Subject proposal: custom variables management
Date
Msg-id BAY114-F13A8E31337F798B8A73A92F9840@phx.gbl
Whole thread Raw
Responses Re: proposal: custom variables management  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hello

This proposal is about  access managenent to custom variables. Currently any 
user can modify it, and isn't way to protect value:

Premises:
* variables are controlled from modules
* syntax of custom variables is without changes
* all modules are safe

Functions:
* reset_custom_variable(cusvar);  ... set default from postgresql.conf
* revoke_custom_variable(READ|MODIFY, cusvar, roleid);
* grant_custom_variable(READ|MODIFY, cusvar, roleid);

Related discussion:
http://archives.postgresql.org/pgsql-hackers/2007-03/msg00153.php

Regards
Pavel Stehule

_________________________________________________________________
Play Flexicon: the crossword game that feeds your brain. PLAY now for FREE.�
http://zone.msn.com/en/flexicon/default.htm?icid=flexicon_hmtagline



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: PrivateRefCount (for 8.3)
Next
From: Teodor Sigaev
Date:
Subject: Re: GIST and TOAST