Re: %ROWTYPE as PL/pgsql argument - Mailing list pgsql-general

From Tom Lane
Subject Re: %ROWTYPE as PL/pgsql argument
Date
Msg-id 19636.1017712448@sss.pgh.pa.us
Whole thread Raw
In response to %ROWTYPE as PL/pgsql argument  (Richard Emberson <emberson@phc.net>)
List pgsql-general
Richard Emberson <emberson@phc.net> writes:
> CREATE OR REPLACE FUNCTION testFunc(mytable%ROWTYPE)

There's no %ROWTYPE in Postgres SQL.  There's no need for it, because
the table name is also the name of the rowtype datatype --- so you
should have written just

CREATE OR REPLACE FUNCTION testFunc(mytable)

            regards, tom lane

pgsql-general by date:

Previous
From: Richard Emberson
Date:
Subject: %ROWTYPE as PL/pgsql argument
Next
From: Paul M Foster
Date:
Subject: Return value if table doesn't exist