Re: plpgsql return setof integer? - Mailing list pgsql-general

From Christopher Murtagh
Subject Re: plpgsql return setof integer?
Date
Msg-id 1068679392.2960.1.camel@mafalda.murtagh.name
Whole thread Raw
List pgsql-general
On Wed, 2003-11-12 at 17:35, Christopher Murtagh wrote:
>  I've got a fairly simple function that I'm trying to return a set, but
> seem to have come across a stumbling block. When I execute the function
> below (the input params are not used at the moment) I get this:
>
> chris=# select htdig('foo', 'foo');

Actually, I just found my problem. I changed the above query to:

chris=# select * from htdig('foo', 'foo');

and it works as expected. Thanks again to everyone on this list who
helped out.

Cheers,

Chris

--
Christopher Murtagh
Enterprise Systems Administrator
ISR / Web Communications Group
McGill University
Montreal, Quebec
Canada

Tel.: (514) 398-3122
Fax:  (514) 398-2017

pgsql-general by date:

Previous
From: Jan Wieck
Date:
Subject: Re: serial type vs. sequences
Next
From: Tom Lane
Date:
Subject: Re: SQL-question: returning the id of an insert querry