From: | Craig Ringer <craig(at)2ndquadrant(dot)com> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>, 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-10 03:55:02 |
Message-ID: | CAMsr+YG3chnZkBo5oL6WdmRd5EYdpdO-WA5EPGL4=0nvRvNZ0w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 10 January 2017 at 05:14, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> 2. The user doesn't need to re-declare the variables you want to use
> at the beginning of every session. This is also the reason why many
> people want global temporary tables. They don't do anything that
> can't be done with local temporary tables; they're just more
> convenient to use.
They'll also help a lot with pg_attribute and pg_class bloat.
I don't feel strongly either way about catalog use, but definitely
think declare-before-use is crucial. Pretty much every language that
implicitly declares variables has landed up adding a way to require
them to be declared for a reason.
--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Craig Ringer | 2017-01-10 04:03:37 | Re: RustgreSQL |
Previous Message | Amit Kapila | 2017-01-10 03:46:48 | Re: _hash_addovflpage has a bug |