| From: | Wells Oliver <wells(dot)oliver(at)gmail(dot)com> |
|---|---|
| To: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
| Cc: | pgsql-admin <pgsql-admin(at)postgresql(dot)org> |
| Subject: | Re: Creating trigger with optional arg? |
| Date: | 2020-07-22 17:30:29 |
| Message-ID: | CAOC+FBV0sVoLSXf9PmJO2ukX2txyJwOskT5ckj0zUPKv_V9z6A@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
I think this is a little different given I'm using the array TG_ARGV and
not defined parameters in the signature though, correct?
On Wed, Jul 22, 2020 at 9:59 AM David G. Johnston <
david(dot)g(dot)johnston(at)gmail(dot)com> wrote:
> On Wed, Jul 22, 2020 at 9:49 AM Wells Oliver <wells(dot)oliver(at)gmail(dot)com>
> wrote:
>
>> Is it possible to have a variable number of elements in TG_ARGV in a
>> trigger?
>>
>
> https://www.postgresql.org/docs/12/sql-createfunction.html
>
> see: default_expr
>
> I would expect it to work though I have not tried it myself.
>
> David J.
>
>
--
Wells Oliver
wells(dot)oliver(at)gmail(dot)com <wellsoliver(at)gmail(dot)com>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 2020-07-22 18:42:25 | Re: More efficient access of JSON array elements? |
| Previous Message | David G. Johnston | 2020-07-22 16:58:51 | Re: Creating trigger with optional arg? |