table value function help

Поиск
Список
Период
Сортировка
От Glenn Schultz
Тема table value function help
Дата
Msg-id CAE-4=KGD4fH=A0YMqYht3V6cOr4Wyd1eoH=hOtZ7TS8YCvX89g@mail.gmail.com
обсуждение исходный текст
Ответы Re: table value function help  (Adrian Klaver <adrian.klaver@aklaver.com>)
Re: table value function help  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-general
Hello,

I have a table value function and would like the first and second input to take multiple arguments (array or list) I suppose.  Like the below:


create or replace function myfunction(sector, agency, term)
returns table (cusip char(9), sector char(12))
language sql
stable
as $function$

select foo
from
atable
where
sector in (myfunction.sector)

usage

sectorselect('sector_1 sector_2', 'agent_1 agent_2, 120)

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

Предыдущее
От: Josef Šimánek
Дата:
Сообщение: Re: a bug jsonb?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Compile postgresql libraries with VS17