Using rowtype as function argument - Mailing list pgsql-sql

From Martin Brommer
Subject Using rowtype as function argument
Date
Msg-id 5.1.0.14.2.20030806111628.00ba12f0@192.168.0.1
Whole thread Raw
In response to Which cursor-related warnings should be errors?  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Using rowtype as function argument
List pgsql-sql
Hi all,

I suppose this must be easy to figure out, but I can't find it anywhere in 
the documentation.

How do I call a function that takes a rowtype for an argument as in:

CREATE FUNCTION myfunc(mytablename) RETURNS INT AS '
BEGIN-- Do stuffRETURN val;
END;
' LANGUAGE 'plpgsql'

How do I call this function? I haven't been able to figure it out or find 
it anywhere...

Thanks in advance,


Martin



pgsql-sql by date:

Previous
From: Rod Taylor
Date:
Subject: Re: length of recordset read through a cursor
Next
From: Jodi Kanter
Date:
Subject: looking for empty fields