Functions returning multiple rowsets - Mailing list pgsql-general

From Thom Brown
Subject Functions returning multiple rowsets
Date
Msg-id bddc86150909280949s6f9b88d0nbf380716afc3f5dd@mail.gmail.com
Whole thread Raw
Responses Re: Functions returning multiple rowsets  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: Functions returning multiple rowsets  (Merlin Moncure <mmoncure@gmail.com>)
List pgsql-general
Hi,

Is it possible to create a function using 'SQL' as language which could return multiple rowsets, such as "SELECT * FROM TABLE1; SELECT * FROM TABLE2;" where both results are returned in the output?  I know this can be done in stored procedures in other RBDMS but can this be done in a function?

Thanks

Thom

pgsql-general by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: computed values in plpgsql
Next
From: Steve Atkins
Date:
Subject: Re: sync structures