From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Vlad Arkhipov <arhipov(at)dc(dot)baikal(dot)ru> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: COMMENT on function's arguments |
Date: | 2012-06-14 19:14:05 |
Message-ID: | CA+TgmoaCYKaBx6Y76amxLxEvWKV0_jwkuoehs_=L+ow5z9Jvhw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Jun 12, 2012 at 10:59 PM, Vlad Arkhipov <arhipov(at)dc(dot)baikal(dot)ru> wrote:
> Does it make sense to have a comment on function's arguments? Of course it
> is possible to include these comments in a function's comment, but may be
> better to have them in more formalized way like comments on columns of a
> table. IDEs may use this information when providing hints for a function
> like in other languages.
This would be somewhat tricky, because our COMMENT support assumes
that the object upon which we're commenting has an ObjectAddress, and
individual arguments to a function don't, although perhaps the
sub-object-id stuff that we currently use to handle comments on table
columns could be extended to handle this case. I guess I wouldn't
object to a well-done patch that made this work, but creating such a
patch seems likely to be tricky, owing to the fact that there's
nothing in the system that thinks of the individual arguments to a
function as separate objects at present.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2012-06-14 19:20:49 | Re: Patch pg_is_in_backup() |
Previous Message | Gurjeet Singh | 2012-06-14 19:10:21 | Re: Patch pg_is_in_backup() |