Re: [HACKERS] proposal: schema variables
От
Arthur Zakirov
Тема
Re: [HACKERS] proposal: schema variables
Дата
Msg-id
20180919125324.GA31127@zakirov.localdomain
Ответ на
Re: [HACKERS] proposal: schema variables (Pavel Stehule)
Список
Дерево обсуждения
[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 Wed, Sep 19, 2018 at 02:08:04PM +0200, Pavel Stehule wrote:
> Unfortunately we cannot to use standard
> "SET" command, because it is used in Postgres for different purpose.
> READ|WRITE are totally clear, and for user it is another signal so
> variables are different than tables (so it is not one row table).
>
> I prefer current state, but if common opinion will be different, I have not
> problem to change it.
I see. I grepped the thread before writhing this but somehow missed the
discussion.
> The content of variables is not transactional (by default). It is not
> destroyed by rollback. So I have to calculate with rollback too. So the
> most correct syntax should be "ON COMMIT ON ROLLBACK RESET" what is little
> bit messy and I used "ON TRANSACTION END". It should be signal, so this
> event is effective on rollback event and it is valid for not transaction
> variable. This logic is not valid to transactional variables, where ON
> COMMIT RESET has sense. But this behave is not default and then I prefer
> more generic syntax.
> ...
> So I see two different cases - work with catalog (what is transactional)
> and work with variable value, what is (like other variables in programming
> languages) not transactional. "ON TRANSACTION END RESET" means - does reset
> on any transaction end.
>
> I hope so I explained it cleanly - if not, please, ask.
I understood what you mean, thank you. I thought that
{ ON COMMIT DROP | ON TRANSACTION END RESET } parameters are used only
for transactional variables in the first place. But is there any sense
in using this parameters with non-transactional variables? That is when
we create non-transactional variable we don't want that the variable
will rollback or reset its value after the end of a transaction.
--
Arthur Zakirov
Postgres Professional: http://www.postgrespro.com
Russian Postgres Company
В списке pgsql-hackers по дате отправления