Re: Passing RECORD variable from func1() to func2() - Mailing list pgsql-general

From Tom Lane
Subject Re: Passing RECORD variable from func1() to func2()
Date
Msg-id 18957.1094505475@sss.pgh.pa.us
Whole thread Raw
In response to Re: Passing RECORD variable from func1() to func2()  ("Henry Combrinck" <henry@metroweb.co.za>)
Responses Re: Passing RECORD variable from func1() to func2()  ("Henry Combrinck" <henry@metroweb.co.za>)
List pgsql-general
"Henry Combrinck" <henry@metroweb.co.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

pgsql-general by date:

Previous
From: "Henry Combrinck"
Date:
Subject: Re: Passing RECORD variable from func1() to func2()
Next
From: Alvaro Herrera
Date:
Subject: Re: Passing RECORD variable from func1() to func2()