Skip site navigation (1) Skip section navigation (2)

Re: Plpgsql problem passing ROWTYPE to function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Karl O(dot) Pinc" <kop(at)meme(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Plpgsql problem passing ROWTYPE to function
Date: 2004-04-30 03:21:06
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-general
"Karl O. Pinc" <kop(at)meme(dot)com> writes:
> What a drag.  The documentation says it supports this.

No it doesn't ...

>   "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."

That says that a parameter passed *into* a plpgsql function can be a
rowtype, not that plpgsql supports doing something with the whole-row
variable in function calls it makes.

I agree it's a drag :-(

			regards, tom lane

In response to


pgsql-general by date

Next:From: Tom LaneDate: 2004-04-30 03:33:18
Subject: Re: postgresql idle
Previous:From: Tom LaneDate: 2004-04-30 03:15:58
Subject: Re: postgresql idle

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group