Re: Default values in functions - Mailing list pgsql-general

From Tom Lane
Subject Re: Default values in functions
Date
Msg-id 2185155.1640824315@sss.pgh.pa.us
Whole thread Raw
In response to Re: Default values in functions  (Michael Lewis <mlewis@entrata.com>)
Responses Re: Default values in functions  (Michael Lewis <mlewis@entrata.com>)
List pgsql-general
Michael Lewis <mlewis@entrata.com> writes:
> Thanks sir. It seems unfortunate that there is not a way to indicate
> absence of the third parameter if I need to set a value for the fourth
> parameter.

The way to do that is to use named parameters and the associated
call syntax, ie something like

select myfunc(param1 => 42, param3 => 99);

            regards, tom lane



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Default values in functions
Next
From: Michael Lewis
Date:
Subject: Re: Default values in functions