Re: Calling PL functions with named parameters - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Calling PL functions with named parameters
Date
Msg-id 28943.1092438734@sss.pgh.pa.us
Whole thread Raw
In response to Re: Calling PL functions with named parameters  ("Jim C. Nasby" <decibel@decibel.org>)
Responses HASHes [was Re: Calling PL functions with named parameters]
List pgsql-hackers
"Jim C. Nasby" <decibel@decibel.org> writes:
> IOW, their function resolution code treats a(int, int default 0) as
> being equivalent to a(int) and a(int, int).

So you are willing to prohibit a(int) from existing in parallel with
a(int, int-with-a-default) ?

I'll be interested to see the unique-index scheme for pg_proc to enforce
that ;-)

However this does point up the fact that there already *is* a way to
accomplish the task, which is just to create some helper function(s) to
supply the default(s).  Perhaps we can leave it at that for the time
being, and concentrate on adding real new functionality.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Simon@2ndquadrant.com"
Date:
Subject: Development Schedule Page
Next
From: Gaetano Mendola
Date:
Subject: Re: hot spare / log shipping work on