Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pgu1I-00053H-6T for pgsql-general@arkaria.postgresql.org; Mon, 27 Mar 2023 21:04:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pgu0I-0000pJ-RZ for pgsql-general@arkaria.postgresql.org; Mon, 27 Mar 2023 21:03:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pgu0I-0000pA-E8 for pgsql-general@lists.postgresql.org; Mon, 27 Mar 2023 21:03:46 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pgu0C-00028f-5B for pgsql-general@postgresql.org; Mon, 27 Mar 2023 21:03:45 +0000 Received: by mail-ed1-x532.google.com with SMTP id ew6so41522350edb.7 for ; Mon, 27 Mar 2023 14:03:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679951019; h=mime-version:user-agent:content-transfer-encoding:date:to:from :subject:message-id:from:to:cc:subject:date:message-id:reply-to; bh=LOzyUK6ohUj81UJcgmdmz5XKnEqtcJWESf/8nklLzTE=; b=dwmyuyhi0B4trkW14lkbMA4e1Ndi8duVgmL1zUTzAEREkmk6kI00Pg0m4U/zQWGDHM jbXMkPsWTBartTcSRyaLN1nLrw9qniMXuI47NAS6dNQ/6Q3YkIA1VHhfkZCVCMjDj7gh INEy4zWyVvFzcRb8I6ZsbULylbHinfrUTgqdpZJ2e+2ZRJaoIUxFB7SsifP6I2ckbo1O zZ04sDUfz2FtrDcjluqcMjU9cNPITgFMJhCtlO3k2VRfWLiIbxBwjsnyqcQt8/Efyahk rVfCqM0wQgZjxj50ssyOQehowZDrfscTUOFGkM2GAr/5b+gbB3DZbwZPGWPwBbB6pl18 Wvsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679951019; h=mime-version:user-agent:content-transfer-encoding:date:to:from :subject:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=LOzyUK6ohUj81UJcgmdmz5XKnEqtcJWESf/8nklLzTE=; b=tg9+LeWV+n3ynqbS0AsBw7wetMvme3OFizJu1+dK3ESwbGf6s4OapwHAQ7sLm2UEAj C08of8JXkl1qzBErYGFzALht3V5TEruRHcAr/Yx3AMp120cL6K4q6I4kwAlM+M61z7i4 uN8JZEWYdCsdVqwkXPpKt25qRcMksBJUBUqbMSjk9XCVzG33Ds6FuRWE1tE93vEX/dtG OlyLh5ZT6xvuyvZk1P05pruhsBM8LO2R3XdsDSjoIbMNPQDUlzdxXyR8EEOmG8BDrl4R U+LkK8Y9bpLWDcMBf4/D8OAAs+LuSIGggfhy2+nnpfmwKZx7gWo3soGOGCGlsgmBsN9G uW7Q== X-Gm-Message-State: AAQBX9dri5xZgDIv2jS3EYl7LWrrXegO9C/UnSKKETfw0VJdbODpvzCQ I9WWgtUwdaFkqGUC3rEpNxW1ouDz6SE= X-Google-Smtp-Source: AKy350aIvxuDEWWcxNmsafncjZxvhwfDZB/Q48z/Jur9mteW/zh/KVIKL5zc2rEgIvZyyDfneQckqg== X-Received: by 2002:a17:907:9801:b0:934:60b1:a4b7 with SMTP id ji1-20020a170907980100b0093460b1a4b7mr15990847ejc.51.1679951018690; Mon, 27 Mar 2023 14:03:38 -0700 (PDT) Received: from titano.lan (dynamic-adsl-62-10-178-10.clienti.tiscali.it. [62.10.178.10]) by smtp.gmail.com with ESMTPSA id hy14-20020a1709068a6e00b009351546fb54sm10828568ejc.28.2023.03.27.14.03.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 14:03:37 -0700 (PDT) Message-ID: <78497cf2fe28db2116ecc6dc6ec0fefecb23dd9f.camel@gmail.com> Subject: C function returning a tuple containing an array of tuples From: Alberto To: pgsql-general@postgresql.org Date: Mon, 27 Mar 2023 23:03:36 +0200 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-1 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, I have a function written in C language returning a tuple. One of the field= s 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 4= th 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