PL/PgSQL - returning multiple columns ...

Поиск
Список
Период
Сортировка
От Marc G. Fournier
Тема PL/PgSQL - returning multiple columns ...
Дата
Msg-id 20050202170643.R27579@ganymede.hub.org
обсуждение исходный текст
Список pgsql-sql
I have a function that I want to return 'server_name, avg(load_avg)' ... 
if I wanted to return matching rows in a table, I can do a 'setof 
<table>', with a for loop inside ... but what do I set the 'RETURNS' to if 
I want to return the results of query that returns only two fields of a 
table, or, in the case of the above, one column and oen 'group by' column?

thanks ...


----
Marc G. Fournier           Hub.Org Networking Services (http://www.hub.org)
Email: scrappy@hub.org           Yahoo!: yscrappy              ICQ: 7615664


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

Предыдущее
От: "Joel Fradkin"
Дата:
Сообщение: Re: pg_restore problem
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_restore problem