Re: pl/pythonu - return values
От | Joshua D. Drake |
---|---|
Тема | Re: pl/pythonu - return values |
Дата | |
Msg-id | 4356CC70.5050508@commandprompt.com обсуждение исходный текст |
Ответ на | pl/pythonu - return values (Kelly Burkhart <kelly@tradebotsystems.com>) |
Список | pgsql-interfaces |
Kelly Burkhart wrote: >Can pl/pythonu procedures return anything other than a string? > >I have some python code which communicates to another process and can >either return sensible results or some kind of error. I was hoping to >return something like: > >create type rval_t as (status integer, status_txt text, result text); > > Well you could have it return the set using a setof function. >Is something like this possible? > > >---------------------------(end of broadcast)--------------------------- >TIP 9: In versions below 8.0, the planner will ignore your desire to > choose an index scan if your joining column's datatypes do not > match > > -- The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564 PostgreSQL Replication, Consulting, Custom Development, 24x7 support Managed Services, Shared and Dedicated Hosting Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/
В списке pgsql-interfaces по дате отправления: