Re: ROWTYPE as parameter to function - Mailing list pgsql-general

From Tom Lane
Subject Re: ROWTYPE as parameter to function
Date
Msg-id 4536.1019251683@sss.pgh.pa.us
Whole thread Raw
In response to ROWTYPE as parameter to function  ("Nigel J. Andrews" <nandrews@investsystems.co.uk>)
Responses Re: ROWTYPE as parameter to function
List pgsql-general
"Nigel J. Andrews" <nandrews@investsystems.co.uk> writes:
> Obviously I can't use the RECORD type but when I create the function with:
> CREATE FUNCTION myfunction (myview%ROWTYPE) RETURNS ... ;
> the '%' gets reported in an error message.

Leave off the %ROWTYPE.  Also read the info about composite-type
arguments at
http://www.ca.postgresql.org/users-lounge/docs/7.2/postgres/xfunc-sql.html

            regards, tom lane

pgsql-general by date:

Previous
From: William Meloney
Date:
Subject: Re: unable to repair table: missing chunk number
Next
From: David A Dickson
Date:
Subject: Re: creating table w/ php help