From: Kumar <sgnerd@yahoo.com.sg>
To: psql <pgsql-sql@postgresql.org>
Subject: Fetching a single column from a record returning function
Date: Tue, 20 Jan 2004 11:42:54 +0530
Message-ID: <005101c3df24$2662ed20$7502a8c0@hdsc.com> (raw)
Hi Friends,
Postgres 7.3.4 on RH Linux 7.2
I am using a record variable inside a functions and fetch the result via the follow command
select * from .fn_email(1)
as (email_folder_id int4,email_folder_name varchar,descrip varchar,msgcount int8,unreadcount int8,size int8);
Is it possible to fetch only one column (the 'msgcount') from the function. Because I am interested in SUM(msgcount). Please shed some light.
Regards
kumar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: sgnerd@yahoo.com.sg
Subject: Re: Fetching a single column from a record returning function
In-Reply-To: <005101c3df24$2662ed20$7502a8c0@hdsc.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox