Like to RETURN SQL results set

From: M Sarwar <sarwarmd02(at)outlook(dot)com>
To: "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Like to RETURN SQL results set
Date: 2024-03-27 20:40:01
Message-ID: DM4PR19MB5978E0422300C922982974EBD3342@DM4PR19MB5978.namprd19.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hello,

I am writing a dynamic function in which number of columns to be retrieved change depending on the parameter values passed while invoking the function. I am using CROSSTAB in the dynamic SQL.

Once I prepare a dynamic SQL and I execute, I want the entire result set from the executed SQL to be returned to function RETURN.

Is this possible? If yes, can you please point me to some examples.

Thanks,

Sarwar

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Laurenz Albe 2024-03-28 09:19:40 Re: Like to RETURN SQL results set
Previous Message Ron Johnson 2024-03-27 13:28:43 Re: upgrade from centos 6.8 to 6.10