Re: [HACKERS] proposal: schema variables

Поиск
Список
Период
Сортировка
Искать
От
Nico Williams
Тема
Re: [HACKERS] proposal: schema variables
Дата
Msg-id
20171102153505.GP4496@localhost
Ответ на
Список
Дерево обсуждения
[HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables "Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Nico Williams <nico@cryptonector.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables srielau <serge@rielau.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Serge Rielau <serge@rielau.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables srielau <serge@rielau.com>
Re: [HACKERS] proposal: schema variables Gilles Darold <gilles.darold@dalibo.com>
Re: [HACKERS] proposal: schema variables Gilles Darold <gilles.darold@dalibo.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Serge Rielau <serge@rielau.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Gilles Darold <gilles.darold@dalibo.com>
Re: [HACKERS] proposal: schema variables Tatsuo Ishii <ishii@sraoss.co.jp>
Re: [HACKERS] proposal: schema variables Arthur Zakirov <a.zakirov@postgrespro.ru>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Arthur Zakirov <a.zakirov@postgrespro.ru>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: schema variables Fabrízio Mello <fabriziomello@gmail.com>
Re: [HACKERS] proposal: schema variables Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Mark Dilger <hornschnorter@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Golub <pavel@microolap.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Gilles Darold <gilles.darold@dalibo.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Gilles Darold <gilles.darold@dalibo.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] proposal: schema variables Pavel Luzanov <p.luzanov@postgrespro.ru>
Re: [HACKERS] proposal: schema variables Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] proposal: schema variables Dean Rasheed <dean.a.rasheed@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Arthur Zakirov <a.zakirov@postgrespro.ru>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Arthur Zakirov <a.zakirov@postgrespro.ru>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Arthur Zakirov <a.zakirov@postgrespro.ru>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Erik Rijkers <er@xs4all.nl>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Thomas Munro <thomas.munro@enterprisedb.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Dmitry Dolgov <9erthalion6@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: Re: [HACKERS] proposal: schema variables David Steele <david@pgmasters.net>
Re: Re: [HACKERS] proposal: schema variables Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] proposal: schema variables David Steele <david@pgmasters.net>
Re: Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: schema variables Philippe BEAUDOIN <phb07@apra.asso.fr>
Re: proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: schema variables Philippe BEAUDOIN <phb07@apra.asso.fr>
Re: proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: schema variables Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: schema variables remi duval <remi.duval@cheops.fr>
Re: proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
RE: proposal: schema variables DUVAL REMI <REMI.DUVAL@CHEOPS.FR>
Re: proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: schema variables Asif Rehman <asifr.rehman@gmail.com>
Re: proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
RE: proposal: schema variables DUVAL REMI <REMI.DUVAL@CHEOPS.FR>
Re: proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Erik Rijkers <er@xs4all.nl>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Erik Rijkers <er@xs4all.nl>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Erik Rijkers <er@xs4all.nl>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables "David G. Johnston" <david.g.johnston@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Luzanov <p.luzanov@postgrespro.ru>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Luzanov <p.luzanov@postgrespro.ru>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: proposal: schema variables Pavel Luzanov <p.luzanov@postgrespro.ru>
Re: proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] proposal: schema variables Nico Williams <nico@cryptonector.com>
Re: [HACKERS] proposal: schema variables Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] proposal: schema variables Nico Williams <nico@cryptonector.com>
Re: [HACKERS] proposal: schema variables Chris Travers <chris.travers@adjust.com>
Re: [HACKERS] proposal: schema variables Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Craig Ringer <craig@2ndquadrant.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Chris Travers <chris.travers@adjust.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] proposal: schema variables Chris Travers <chris.travers@adjust.com>
Re: [HACKERS] proposal: schema variables Hannu Krosing <hannu.krosing@2ndquadrant.com>
Re: [HACKERS] proposal: schema variables Gilles Darold <gilles.darold@dalibo.com>
Re: [HACKERS] proposal: schema variables Pavel Stehule <pavel.stehule@gmail.com>
On Thu, Nov 02, 2017 at 06:05:54PM +0530, Robert Haas wrote:
> On Thu, Oct 26, 2017 at 12:51 PM, Pavel Stehule  wrote:
> > The variables can be modified by SQL command SET (this is taken from
> > standard, and it natural)
> >
> > SET varname = expression;
> 
> Overloading SET to handle both variables and GUCs seems likely to
> create problems, possibly including security problems.  For example,
> maybe a security-definer function could leave behind variables to
> trick the calling code into failing to set GUCs that it intended to
> set.  Or maybe creating a variable at the wrong time will just break
> things randomly.

That's already true of GUCs, since there are no access controls on
set_config()/current_setting().

Presumably "schema variables" would really just be GUC-like and not at
all like lexically scoped variables.  And also subject to access
controls, thus an overall improvement on set_config()/current_setting().

With access controls, GUCs could become schema variables, and settings
from postgresql.conf could move into the database itself (which I think
would be nice).

Nico
-- 


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
В списке pgsql-hackers по дате отправления
От: Craig Ringer
Дата:
От: Pavel Stehule
Дата:
FAQ