Re: Passing RECORD variable from func1() to func2()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Henry Combrinck" <henry(at)metroweb(dot)co(dot)za>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Passing RECORD variable from func1() to func2()
Date: 2004-09-06 21:17:55
Message-ID: 18957.1094505475@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Henry Combrinck" <henry(at)metroweb(dot)co(dot)za> writes:
> Can you give an example of what a "named rowtype" is?

The result of CREATE TYPE AS, or the row type implicitly created for a
table. For instance

CREATE TYPE complex AS (r float, i float);

CREATE FUNCTION abs(complex) RETURNS float AS ...

or

CREATE TABLE users (name text, ...);

CREATE FUNCTION foobar(users) RETURNS ...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2004-09-06 21:23:31 Re: Passing RECORD variable from func1() to func2()
Previous Message Henry Combrinck 2004-09-06 20:39:54 Re: Passing RECORD variable from func1() to func2()