Re: [HACKERS] proposal: schema variables

Поиск
Список
Период
Сортировка
Искать
От
Pavel Stehule
Тема
Re: [HACKERS] proposal: schema variables
Дата
Msg-id
CAFj8pRB+PDcKX0WJqovhxMJb=O=k4qV+EekFDKFpyVSZLzFzfA@mail.gmail.com
Ответ на
Список
Дерево обсуждения
[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>
Hi

here is updated patch - I wrote some transactional support

I am not sure how these new features are understandable and if these features does it better or not.

There are possibility to reset to default value when

a) any transaction is finished - the scope of value is limited by transaction

CREATE VARIABLE foo int ON TRANSACTION END RESET;

b) when transaction finished by rollback

CREATE VARIABLE foo int ON ROLLBACK RESET

Now, when I am thinking about it, the @b is simple, but not too practical - when some fails, then we lost a value (any transaction inside session can fails). The @a has sense - the behave is global value (what is not possible in Postgres now), but this value is destroyed by any unhandled exceptions, and it cleaned on transaction end. The @b is just for information and for discussion, but I'll remove it - because it is obscure.

The open question is syntax. PostgreSQL has already ON COMMIT xxx . It is little bit unclean, because it has semantic "on transaction end", but if I didn't implement @b, then ON COMMIT syntax can be used.

Regards

Pavel


В списке pgsql-hackers по дате отправления
От: Peter Eisentraut
Дата:
От: Chris Travers
Дата:
FAQ