| От | Joe Conway |
|---|---|
| Тема | Re: function returning a row |
| Дата | |
| Msg-id | 41C05544.10602@joeconway.com обсуждение исходный текст |
| Ответ на | Re: function returning a row (Kjetil Haaland <kjetil.haaland@student.uib.no>) |
| Ответы |
Re: function returning a row
|
| Список | pgsql-novice |
Kjetil Haaland wrote: > this i have done, i can return a single value of my own type from the > function. So now i am wondering, is it possible to return a set of my type? > If it is possible, how do i do that? > I haven't followed this thread from the beginning, but if I understand correctly, you have a custom scalar type, and you want to return a set of that type? You should be able to declare the function with "RETURNS setof alignres", and then implement it as an SRF. See for example normal_rand() in contrib/tablefunc. Joe
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера