Re: proposal: session server side variables

From: Craig Ringer <craig(at)2ndquadrant(dot)com>
To: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
Cc: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Fabrízio de Royes Mello <fabriziomello(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Joe Conway <mail(at)joeconway(dot)com>
Subject: Re: proposal: session server side variables
Date: 2017-01-05 00:36:32
Message-ID: CAMsr+YGW+jFMvn3ex+PLDE5vHZMWu0hiZ7S7oXRy6qpj0jm-Vw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 5 January 2017 at 08:35, Craig Ringer <craig(at)2ndquadrant(dot)com> wrote:
> On 5 January 2017 at 01:49, Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr> wrote:
>>
>>> ok understand
>>
>>
>> Good. So we seem to agree that GUCS are transactional?
>
> No. We don't agree. They aren't.

Uh. I take that back.

craig=> SET x.s = 'x';
SET
craig=> BEGIN;
BEGIN
craig=> SET x.s = 'y';
SET
craig=> ROLLBACK;
ROLLBACK
craig=> SHOW x.s;
x.s
-----
x
(1 row)

I'm surprised, I never knew this.

--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joe Conway 2017-01-05 00:42:59 Re: proposal: session server side variables
Previous Message Craig Ringer 2017-01-05 00:35:11 Re: proposal: session server side variables