Re: plperl vs. bytea - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: plperl vs. bytea
Date
Msg-id 463DD714.6090406@dunslane.net
Whole thread Raw
In response to Re: plperl vs. bytea  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: plperl vs. bytea
List pgsql-hackers

Peter Eisentraut wrote:
> Andrew Dunstan wrote:
>   
>> It's not. If we really want to tackle this root and branch without
>> upsetting legacy code, I think we'd need to have a way of marking
>> data items as binary in the grammar, e.g.
>>
>>   create function myfunc(myarg binary bytea) returns binary bytea
>> language plperl as $$ ...$$;
>>     
>
> This ought to be a property of data type plus language, not a property 
> of a function.
>
>   

Why should it?

And how would you do it in such a way that it didn't break legacy code?

My GUC proposal would have made it language+type specific, but Tom 
didn't like that approach.

cheers

andrew


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Managing the community information stream
Next
From: Jim Nasby
Date:
Subject: Re: Integer datetimes