Re: comments in argument list of plpgsql get stripped? - Mailing list pgsql-general

From Raymond O'Donnell
Subject Re: comments in argument list of plpgsql get stripped?
Date
Msg-id 4F19B329.30502@iol.ie
Whole thread Raw
In response to comments in argument list of plpgsql get stripped?  (Ralph Graulich <maillist@shauny.de>)
Responses Re: comments in argument list of plpgsql get stripped?  (Ralph Graulich <maillist@shauny.de>)
List 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@iol.ie

pgsql-general by date:

Previous
From: Brice Maron
Date:
Subject: Re: Immutable function with bind value
Next
From: "David Johnston"
Date:
Subject: Re: Immutable function with bind value