Re: PL/pgSQL: How to return two columns and multiple rows

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: PL/pgSQL: How to return two columns and multiple rows
Дата
Msg-id CAKFQuwYHvLJUMvuM6+bjdeZLBPA2KX2oAy4WZ=YNCj-F8=nEwA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: PL/pgSQL: How to return two columns and multiple rows  (Chris Travers <chris.travers@gmail.com>)
Список pgsql-general
On Thursday, June 18, 2015, Chris Travers <chris.travers@gmail.com> wrote:


Select (myfunc('foo','bar')).*;



This should be avoided.  Use lateral instead,or a cte a/o offset 0.  My_func is evaluated twice (once per column) if called this way  


Or
Select * from myfunc('foo','bar');

 
This is ok
 
David J.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: PL/pgSQL: How to return two columns and multiple rows
Следующее
От: Sven Geggus
Дата:
Сообщение: Re: PL/pgSQL: How to return two columns and multiple rows