C function returning a tuple containing an array of tuples

From: Alberto <alberto(dot)brosich(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: C function returning a tuple containing an array of tuples
Date: 2023-03-27 21:03:36
Message-ID: 78497cf2fe28db2116ecc6dc6ec0fefecb23dd9f.camel@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

I have a function written in C language returning a tuple. One of the fields of
that tuple is an array of tuples.

I obtain the TupleDesc of the outer tuple using get_call_result_type(fcinfo, ...
and is working fine.

I can't figure how to obtain the TupleDesc of the tuple of the array (the 4th
attribute of the outer tuple, in my case).
For example, fcinfo->args[] array has some information about the attributes but
I haven't found anything useful to call get_call_result_type().

Any suggest?

Best regards

Alberto

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Guyot 2023-03-28 03:44:58 Re: PostgreSQL vs MariaDB
Previous Message Amit Kapila 2023-03-27 12:07:46 Re: Support logical replication of DDLs