Re: pl/pgsql docs 37.4.3. Row Types -- how do I use this function?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Lee Harr" <missive(at)hotmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pl/pgsql docs 37.4.3. Row Types -- how do I use this function?
Date: 2004-01-24 19:55:44
Message-ID: 4342.1074974144@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Lee Harr" <missive(at)hotmail(dot)com> writes:
> I am following along with the pl/pgsql docs here:
> http://www.postgresql.org/docs/current/static/plpgsql-declarations.html

> Now, how do I call the function?

I believe you want

select use_two_tables(tablename.*) from tablename;

"foo.*" is the locution for referring to the whole-row value coming from
table foo in a select.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Eric Ridge 2004-01-24 20:45:47 Re: Touch row ?
Previous Message Eric B.Ridge 2004-01-24 19:53:58 Re: Touch row ?