Re: function attributes - Mailing list pgsql-hackers

From Robert Haas
Subject Re: function attributes
Date
Msg-id AANLkTikUejTiL38oC7_e2zWV8g-G_wEZ9QfRABFCySCA@mail.gmail.com
Whole thread Raw
In response to Re: function attributes  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On Sat, Dec 11, 2010 at 9:28 PM, Andrew Dunstan <andrew@dunslane.net> wrote:
> On 12/11/2010 09:16 PM, Robert Haas wrote:
>>
>> Well, you could set that GUC (plperl.pass_binary_bytea) on a function
>> without changing any syntax on at all.
>>
>> CREATE FUNCTION name (args) ... SET plperl.pass_binary_bytea = true;
>
> Oh, good point. I'd forgotten about that. I'll experiment and see if I can
> break it :-)

I guess one problem with that approach is that the scoping of the
parameter change will be dynamic rather than lexical.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: unlogged tables
Next
From: Robert Haas
Date:
Subject: Re: keeping a timestamp of the last stats reset (for a db, table and function)