From: Tom Lane <tgl@sss.pgh.pa.us>
To: Martin Brommer <martin@brommer.nl>
Cc: pgsql-sql@postgresql.org
Subject: Re: Using rowtype as function argument
Date: Wed, 06 Aug 2003 10:40:37 -0400
Message-ID: <18361.1060180837@sss.pgh.pa.us> (raw)
In-Reply-To: <5.1.0.14.2.20030806111628.00ba12f0@192.168.0.1>
References: <5.1.0.14.2.20030806111628.00ba12f0@192.168.0.1>
Martin Brommer <martin@brommer.nl> writes:
> How do I call a function that takes a rowtype for an argument as in:
> CREATE FUNCTION myfunc(mytablename) RETURNS INT AS '
SELECT myfunc(mytablename.*) FROM mytablename;
This also works at the moment, but seems less clear to me:
SELECT myfunc(mytablename) FROM mytablename;
regards, tom lane
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: tgl@sss.pgh.pa.us, martin@brommer.nl
Subject: Re: Using rowtype as function argument
In-Reply-To: <18361.1060180837@sss.pgh.pa.us>
* 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