plperl arginfo - Mailing list pgsql-hackers

From Andrew Dunstan
Subject plperl arginfo
Date
Msg-id 4CC995C2.3000704@dunslane.net
Whole thread Raw
Responses Re: plperl arginfo
Re: plperl arginfo
List pgsql-hackers
<tt>While we were discussing allowing generic record type arguments to plperl functions, Tom suggested that we should
exposethe type information about the record members to plperl. I think if we do that we should probably expand it
somewhatto all arguments, so that for non-trigger functions, we'd have $_ARG_INFO while could look something like
this:<br/><br /></tt><blockquote><tt>{</tt><br /><tt>    names => ['arg1', undef, 'arg3' ] , # no name was supplied
forarg2</tt><br /><tt>    modes => ['in', 'in', 'in' ], # do we support anything other than IN ?</tt><br /><tt>   
types=> ['integer', 'text', { name => 'somecomposite', fields => [ 'field1', 'field2' ], types => ['date',
'numeric'] } ],</tt><br /><tt>}</tt><br /></blockquote><tt>Maybe we should also pass in type Oid info, too.<br /><br />
Idon't think this would be terribly difficult to do.<br /><br /> thoughts?<br /><br /> cheers<br /><br /> andrew<br
/><br/><br /><br />         <br /></tt> 

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: add label to enum syntax
Next
From: Tom Lane
Date:
Subject: Re: plperl arginfo