Re: can I define own variables?

From: Guy Rouillier <guyr-ml1(at)burntmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: can I define own variables?
Date: 2007-10-16 07:19:53
Message-ID: 47146619.1010709@burntmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
> Guy Rouillier <guyr-ml1(at)burntmail(dot)com> writes:
>> I set that up, and using the SHOW command returns the set value. I
>> searched the archives and I couldn't identify a way to retrieve these
>> values in a trigger function.
>
> http://www.postgresql.org/docs/8.2/static/functions-admin.html#FUNCTIONS-ADMIN-SET-TABLE
>

Thank you, Tom. Since "select current_setting('uservars.user_name')"
and "SHOW uservars.user_name" are both PostgreSQL extensions, why not
allow them to be used interchangeably? In short, why isn't the
following legal in a PL/pgsql procedure:

NEW.user_name := (SHOW uservars.user_name);

--
Guy Rouillier

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ow Mun Heng 2007-10-16 07:32:11 pgadmin's pgagent job scheduler
Previous Message Hannes Dorbath 2007-10-16 07:10:00 Create artificial key without temp sequence