Thread: Using a messaging service....

Using a messaging service....

From
Clément Soullard
Date:
Hello,
I'm trying to use a java messaging service so I can post a message whenever 
my table has an update.


Java API   ^   |   |                      Trigger????????           update
Java messagging <--------PostGresql<------------OtherApp



Does any have any clue on it.
Thank you,


Function to return recordset

From
Qiqi Dong
Date:
Hi,

I need help! How can I get either sql or plpgsql function to return
recordset?

Thanks,
Qiqi



Re: Function to return recordset

From
"Richard Huxton"
Date:
From: "Qiqi Dong" <qdong@swbell.net>

> Hi,
>
> I need help! How can I get either sql or plpgsql function to return
> recordset?
>
> Thanks,
> Qiqi

If you have a table foo you can define your function with "returns foo" but
you cannot use this like:

select foo_function('x');

At present it is only useful for use by other functions (I believe). I think
Tom said this is on the developer todo list though, so sometime after 7.1 it
should be possible.

- Richard Huxton



Re: Function to return recordset

From
Qiqi Dong
Date:
It would be nice to have this feature in next release. I cannot port my
applications to PostgreSQL without it. All my data objects depend on
recordset returned from stored procedures. Could someone consider it for
7.1? Thanks.


----- Original Message -----
From: "Richard Huxton" <dev@archonet.com>
To: "Qiqi Dong" <qdong@swbell.net>; <pgsql-sql@postgresql.org>
Sent: Monday, February 26, 2001 9:39 AM
Subject: Re: [SQL] Function to return recordset


> From: "Qiqi Dong" <qdong@swbell.net>
>
> > Hi,
> >
> > I need help! How can I get either sql or plpgsql function to return
> > recordset?
> >
> > Thanks,
> > Qiqi
>
> If you have a table foo you can define your function with "returns foo"
but
> you cannot use this like:
>
> select foo_function('x');
>
> At present it is only useful for use by other functions (I believe). I
think
> Tom said this is on the developer todo list though, so sometime after 7.1
it
> should be possible.
>
> - Richard Huxton
>