How can udf c function return table, not the rows?

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Wen Yi <wen-yi(at)qq(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: How can udf c function return table, not the rows?
Date: 2024-07-19 13:04:40
Message-ID: CAKFQuwZbZ-j47uwOcYRquLcd0JzjkuRHtEMTF+HYH-FLmV+zYQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thursday, July 18, 2024, Wen Yi <wen-yi(at)qq(dot)com> wrote:
>
>
> pg_get_functiondef
> ----------------------------------------------------------------------
>
> In my expectations, it should be:
>
> oid | pg_get_functiondef
>
> ------+-----------------------------------------------------
> -------------------
>
> Can someone give my some advice?
>
>
Write:

Select * from function_call()

Instead of

Select function_call()

Guessing a bit since you never did show the first query.

David J.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2024-07-19 13:17:21 Re: Can we use parallel workers to create index without active/transaction snapshot?
Previous Message Fujii Masao 2024-07-19 13:03:57 Re: Add new COPY option REJECT_LIMIT