Re: Trouble accessing %ROWTYPE attributes returned by function

From: Leon Starr <leon_starr(at)modelint(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Trouble accessing %ROWTYPE attributes returned by function
Date: 2010-08-05 16:54:49
Message-ID: 168BF459-B851-4F23-94AB-7790EB324F9E@modelint.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Thanks, that does the trick and makes perfect sense. (I was eventually able to find a couple of threads on the same topic in this group). Less embarrassing since this is the 'novice' section!

- Leon

On Aug 5, 2010, at 9:20 AM, Tom Lane wrote:

> Leon Starr <leon_starr(at)modelint(dot)com> writes:
>> BAD (attributes concatenated) why?
>> contracts=# select getContracts();
>> getcontracts
>> -----------------
>> (1,USGE,Renew)
>> (2,USGE,Renew)
>> (3,USGE,Renew)
>
> This is expected. Try doing this if you want to "explode" the
> sub-columns:
>
> select * from getContracts();
>
> regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Mladen Gogala 2010-08-05 22:44:22 Schemas in a database?
Previous Message Tom Lane 2010-08-05 16:31:35 Re: Looking for SKYLINE command