Re: proof concept - access to session variables on client side

Pavel Stehule <pavel.stehule@gmail.com>

From: Pavel Stehule <pavel.stehule@gmail.com>
To: Merlin Moncure <mmoncure@gmail.com>
Cc: Magnus Hagander <magnus@hagander.net>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2012-06-26T19:42:38Z
Lists: pgsql-hackers
2012/6/26 Merlin Moncure <mmoncure@gmail.com>:
> On Tue, Jun 26, 2012 at 3:05 AM, Magnus Hagander <magnus@hagander.net> wrote:
>> But with a small change to psql they could, without the need for a
>> whole new type of variable. For example, psql could set all those
>> variable as "psql.<commandlinevarname>", which could then be accessed
>> from the DO PL code just fine.
>
> That's a really neat idea.

yes, it can be good idea - psql sends some status variables on start,
so it should be small patch

Pavel

>
> merlin