Re: Plpgsql problem passing ROWTYPE to function - Mailing list pgsql-general

From Karl O. Pinc
Subject Re: Plpgsql problem passing ROWTYPE to function
Date
Msg-id 20040429190506.A9878@mofo.meme.com
Whole thread Raw
In response to Re: Plpgsql problem passing ROWTYPE to function  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Plpgsql problem passing ROWTYPE to function
List pgsql-general
On 2004.04.29 17:58 Tom Lane wrote:
> "Karl O. Pinc" <kop@meme.com> writes:
> > Thought perhaps some other eyes than mine can tell if I'm doing
> > something wrong here or if there's a bug somewhere.  I've never
> > passed a ROWTYPE varaible to a function
>
> plpgsql doesn't support that.  It might do so for 7.5, if anyone gets
> around to finishing the work I started.

What a drag.  The documentation says it supports this.  Is this a bug
in the documentation
or something I'm not understanding?

See:
http://www.postgresql.org/docs/7.4/static/plpgsql-declarations.html#PLPGSQL-DECLARATION-ROWTYPES

  "Parameters to a function can be composite types (complete table
rows). In that case, the corresponding identifier $n will be a row
variable, and fields can be selected from it, for example $1.user_id."

Thanks for the help.

Karl <kop@meme.com>
Free Software:  "You don't pay back, you pay forward."
                  -- Robert A. Heinlein

pgsql-general by date:

Previous
From: Edmund Dengler
Date:
Subject: Re: Unable to use index?
Next
From: Richard Gass
Date:
Subject: TCP only listening on localhost???