From: Martin Brommer <martin@brommer.nl>
To: pgsql-sql@postgresql.org
Subject: Using rowtype as function argument
Date: Wed, 06 Aug 2003 11:23:40 +0200
Message-ID: <5.1.0.14.2.20030806111628.00ba12f0@192.168.0.1> (raw)
In-Reply-To: <Pine.LNX.4.56.0307301050540.1171@krusty.credativ.de>
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 stuff
RETURN 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: martin@brommer.nl
Subject: Re: Using rowtype as function argument
In-Reply-To: <5.1.0.14.2.20030806111628.00ba12f0@192.168.0.1>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox