Re: %ROWTYPE as PL/pgsql argument

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Richard Emberson <emberson(at)phc(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: %ROWTYPE as PL/pgsql argument
Date: 2002-04-02 01:54:08
Message-ID: 19636.1017712448@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Richard Emberson <emberson(at)phc(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Paul M Foster 2002-04-02 02:18:24 Return value if table doesn't exist
Previous Message Richard Emberson 2002-04-02 00:58:18 %ROWTYPE as PL/pgsql argument