plperl arginfo
От | Andrew Dunstan |
---|---|
Тема | plperl arginfo |
Дата | |
Msg-id | 4CC995C2.3000704@dunslane.net обсуждение исходный текст |
Ответы |
Re: plperl arginfo
Re: plperl arginfo |
Список | 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 по дате отправления: