Re: obtuse plpgsql function needs

Поиск
Список
Период
Сортировка
От elein
Тема Re: obtuse plpgsql function needs
Дата
Msg-id 20030723122723.C26401@cookie
обсуждение исходный текст
Ответ на Re: obtuse plpgsql function needs  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: obtuse plpgsql function needs  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
So, other than C, plperl or pltcl is the way to go.
As long as they can input generic composite types
(I wasn't sure of that, but I should have known), 
they can access columns as array elements so you can
loop through them. And they'll tell you the number
of arguments. Ta da!

elein

On Wed, Jul 23, 2003 at 03:15:50PM -0400, Tom Lane wrote:
> elein <elein@varlena.com> writes:
> > You can do it in C, of course.
> 
> Yeah.  Also you could do it easily in plperl or pltcl (composite-type
> arguments get passed as perl hashes or Tcl arrays respectively).
> plpgsql does not have any facility for run-time determination of field
> names, so you're pretty much out of luck in that particular language.
> 
>             regards, tom lane
> 


В списке pgsql-sql по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: obtuse plpgsql function needs
Следующее
От: greg@turnstep.com
Дата:
Сообщение: Re: obtuse plpgsql function needs