Re: Issue with GRANT/COMMENT ON FUNCTION with default

From: Jim Nasby <jim(at)nasby(dot)net>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Issue with GRANT/COMMENT ON FUNCTION with default
Date: 2014-05-24 18:03:07
Message-ID: 5380DEDB.3090007@nasby.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 5/6/14, 1:57 PM, Peter Eisentraut wrote:
> On 5/5/14, 4:09 PM, Jim Nasby wrote:
>> They do not accept DEFAULT though:
>>
>> GRANT EXECUTE ON FUNCTION test(t text DEFAULT '') to public;
>> ERROR: syntax error at or near "DEFAULT"
>> LINE 1: GRANT EXECUTE ON FUNCTION test(t text DEFAULT '') to public;
>>
>> Presumably this is just an oversight?
>
> It appears to be specified that way in SQL. The DEFAULT clause is not
> part of the function signature.

As in per-ANSI?

Let me ask a related question: is there any reason why we don't accept argument names or the default specifier in the regprocedure cast?
--
Jim C. Nasby, Data Architect jim(at)nasby(dot)net
512.569.9461 (cell) http://jim.nasby.net

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2014-05-24 19:19:11 Re: Issue with GRANT/COMMENT ON FUNCTION with default
Previous Message Jim Nasby 2014-05-24 17:58:30 Re: Priority table or Cache table