Re: RULE - special variables? - Mailing list pgsql-general

From Richard Huxton
Subject Re: RULE - special variables?
Date
Msg-id 455310F1.1020007@archonet.com
Whole thread Raw
In response to Re: RULE - special variables?  (Shane Ambler <pgsql@007Marketing.com>)
List pgsql-general
Shane Ambler wrote:
> Albe Laurenz wrote:
>>> Do rules get special variables like triggers? Can I set variables in
>>> them like
>>> triggers?
>>
>> A rule is one or more SQL-Statements - how do you set variables in SQL?
>>
>
> SET [ SESSION | LOCAL ] name { TO | = } { value | 'value' | DEFAULT }
>
> http://www.postgresql.org/docs/8.1/interactive/sql-set.html

That's configuration settings, not user-defined variables though.

--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: Russell Smith
Date:
Subject: Re: planer picks a bad plan (seq-scan instead of index)
Next
From: Richard Huxton
Date:
Subject: Re: autovacuum blues