Re: comments in argument list of plpgsql get stripped?

From: Raymond O'Donnell <rod(at)iol(dot)ie>
To: Ralph Graulich <maillist(at)shauny(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: comments in argument list of plpgsql get stripped?
Date: 2012-01-20 18:32:09
Message-ID: 4F19B329.30502@iol.ie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 20/01/2012 17:28, Ralph Graulich wrote:
> Hi,
>
> How can I store inline comments in the argument list of a plpgsql
> function to document complex overloaded functions with lots of
> arguments? It seems that PostgreSQL accepts the comments, but strips
> them as the function gets stored.

You could use COMMENT ON instead:

COMMENT ON function func_test(text, text)
IS '....loads of documentation here....';

Would this do the job?

Ray.

--
Raymond O'Donnell :: Galway :: Ireland
rod(at)iol(dot)ie

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Johnston 2012-01-20 18:44:05 Re: Immutable function with bind value
Previous Message Brice Maron 2012-01-20 18:26:16 Re: Immutable function with bind value