Re: table value function help

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Glenn Schultz <glenn(at)bondlab(dot)io>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: table value function help
Date: 2018-11-22 17:02:54
Message-ID: CAKFQuwavpGYpRRoj3sEG7fzU-isQ+WuJwnVYjquxt5biwb_5yA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thursday, November 22, 2018, Glenn Schultz <glenn(at)bondlab(dot)io> wrote:

> 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)
>

Create function myfunction(arg1 text[], arg2 text[]) ...

David J.

p.s. You should avoid using the “char” data type in PostgreSQL, use text or
varcar instead.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Glenn Schultz 2018-11-22 18:43:28 Re: table value function help
Previous Message Adrian Klaver 2018-11-22 16:44:47 Re: table value function help