From: | Decibel! <decibel(at)decibel(dot)org> |
---|---|
To: | David E(dot) Wheeler <david(at)kineticode(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org, "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com> |
Subject: | Re: WIP: default values for function parameters |
Date: | 2008-12-08 15:28:37 |
Message-ID: | 992EDF7A-2B63-4D47-BB56-6712656674E4@decibel.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Nov 30, 2008, at 12:04 PM, David E. Wheeler wrote:
> Agreed, default values should not be a part of function signatures,
> although it might be nice if ALTER FUNCTION to allow default values
> to be changed.
It would be VERY nice. I routinely cut and paste an entire function
header to later perform things like ALTER and GRANT so that I don't
have to re-type everything. It would be a huge PITA if I had to then
go and delete any default settings.
Example:
CREATE OR REPLACE FUNCTION add(
a int
, b int
) RETURNS int LANGUAGE ...
GRANT EXECUTE ON FUNCTION add(
a int
, b int
) TO someuser;
--
Decibel!, aka Jim C. Nasby, Database Architect decibel(at)decibel(dot)org
Give your computer some brain candy! www.distributed.net Team #1828
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2008-12-08 15:32:00 | Re: new vacuum is slower for small tables |
Previous Message | Andrew Chernow | 2008-12-08 15:27:43 | Re: user-based query white list |