Re: proposal: only superuser can change customized_options - Mailing list pgsql-hackers

From Tom Lane
Subject Re: proposal: only superuser can change customized_options
Date
Msg-id 6976.1170434410@sss.pgh.pa.us
Whole thread Raw
In response to proposal: only superuser can change customized_options  ("Pavel Stehule" <pavel.stehule@hotmail.com>)
Responses Re: proposal: only superuser can change customized_options  ("Pavel Stehule" <pavel.stehule@hotmail.com>)
List pgsql-hackers
"Pavel Stehule" <pavel.stehule@hotmail.com> writes:
> I want to use custmized option for security configuration one contrib 
> library. Currently customized options are usable only for default 
> configuration, because everybody can change it. It is substitution of global 
> variables.
> Decision if option is protected or not can be based on name of option.

I dislike making it depend on spelling.  There was discussion of this
problem before, and we had a much saner answer: when the module that
defines the variable gets loaded, discard any local setting if the
correct protection level of the variable is SUSET or higher.  See the
archives.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Function proposal to find the type of a datum
Next
From: Jim Nasby
Date:
Subject: Re: Proposal: Snapshot cloning