pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alberto <alberto.brosich@gmail.com>
To: pgsql-general@postgresql.org
Subject: C function returning a tuple containing an array of tuples
Date: Mon, 27 Mar 2023 23:03:36 +0200
Message-ID: <78497cf2fe28db2116ecc6dc6ec0fefecb23dd9f.camel@gmail.com> (raw)

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






Message-ID: <78497cf2fe28db2116ecc6dc6ec0fefecb23dd9f.camel@gmail.com>
Permalink:  ../78497cf2fe28db2116ecc6dc6ec0fefecb23dd9f.camel@gmail.com/
Also on:    postgresql.org/message-id/78497cf2fe28db2116ecc6dc6ec0fefecb23dd9f.camel@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: alberto.brosich@gmail.com
  Subject: Re: C function returning a tuple containing an array of tuples
  In-Reply-To: <78497cf2fe28db2116ecc6dc6ec0fefecb23dd9f.camel@gmail.com>
  References: <78497cf2fe28db2116ecc6dc6ec0fefecb23dd9f.camel@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox