Re: function accepting a row - Mailing list pgsql-general

From Michael Fuhr
Subject Re: function accepting a row
Date
Msg-id 20050811130742.GA91088@winnie.fuhr.org
Whole thread Raw
In response to Re: function accepting a row  (tgrzej <tgrzej@aster.pl>)
Responses Re: function accepting a row  (Tomek Grzejszczyk <tgrzej@aster.pl>)
List pgsql-general
On Thu, Aug 11, 2005 at 12:20:17PM +0200, tgrzej wrote:
> I tried to follow #37.1.2 from:
> http://www.postgresql.org/docs/7.4/interactive/plpgsql.html
>
> where one can read:
> "Functions written in PL/pgSQL can accept as arguments any scalar or
> array data type supported by the server, and they can return a result
> of any of these types. They can also accept or return any composite
> type (row type) specified by name."
>
> So is this part of documentation non correct or is my way of calling a
> function accepting a rowtype is not correct?

PL/pgSQL functions can *accept* these types of arguments, but in
versions earlier than 8.0 they have trouble *passing* such arguments
to another function.  The documentation should probably be more clear
about that.

--
Michael Fuhr

pgsql-general by date:

Previous
From: Christopher Browne
Date:
Subject: Re: What's up with EnterpriseDB?
Next
From: "Google Mike"
Date:
Subject: Re: Poll on your LAPP Preferences