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 1qGjN3-0002Gy-G8 for pgsql-sql@arkaria.postgresql.org; Tue, 04 Jul 2023 16:59:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qGjN1-0000J9-IT for pgsql-sql@arkaria.postgresql.org; Tue, 04 Jul 2023 16:59:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qGjN1-0000J0-7w for pgsql-sql@lists.postgresql.org; Tue, 04 Jul 2023 16:59:19 +0000 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qGjMu-002BaA-FF for pgsql-sql@lists.postgresql.org; Tue, 04 Jul 2023 16:59:18 +0000 Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-98377c5d53eso678895666b.0 for ; Tue, 04 Jul 2023 09:59:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688489949; x=1691081949; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=k8nVENogfl0gjm8UXnuLdswN+Y0wDOuicki5cQ8mP5U=; b=qG5TT+Ja9GYe7l4+G3jpkRnkmLRfFgTSZAE8fNFQyJSQlQYKfcxoifGRuUcjtsSL2/ 4eCwgSGNTrSmhSXg5k5qX6DP6ImpT1Ym0K+2E6eyOt4HRkGy4kZLnkVuSfdayxU6C6Sj lqMWC3/yd3Sp0uggPQlREhcXYMeGgF624wXuU+Gfx9PHYwFsGZRfzxI7ZSCVck0Uk6nO 2M1Vdnrqokl0XyWKOhnO01m+GU4ISHUwwzawf7F5PhlM0TkhrLtaobYP1NMtXEQuIXmX vr2LJ9Gq2+PVTSBcTUrFTYF+iah5h7/q/3N2GdaudE3pEgNVDpFdHVeHFgXAoI/mlpTf bxuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688489949; x=1691081949; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=k8nVENogfl0gjm8UXnuLdswN+Y0wDOuicki5cQ8mP5U=; b=eIlPZWXMtwMvYZhMO7Ov8Ql20UOnTaF5t3Q1GViLZSctUggee55IXMgJHhpLlUcueR UPgQoNKotUxrCD8OOtfseG3Bz3y4BQUkC0cdAmBdRkZJ5qlL02mTSTDFKIsLDB/3ltNR gIm+rBk63tPQ3tzKoiBZ1bD0K26ApAi5hlc5SldNZQn/lxgys91m4yOR549WkAFdrQso aap37+z0D/pK+Ehs4SsQP9rcPSZBcm7BSSqMUNfY0qQCn6uCsiynmbisw54dll0jk4Xi 07fJZHyiEfybcJuoFNtUogQHHcnn6QPTppaO5/v8Sgym/eK20u3BltCrXZlRptm0zq72 J+EA== X-Gm-Message-State: ABy/qLaRgAR4uyQeOhTYlmhqwKzhhPvKqpXp+Esd/6vI2Qi8ypG/YUpj v3a0IfwLmwbUcdrDiKEgOCOt4xPLizwB1eLQxeppIay/ X-Google-Smtp-Source: APBJJlFA9CjPzg9GbtjTGpUScOsHtYT0dPYjV78+PDlwExLxa6PQzeWSiNuG2uydabR40RxDAogkwQRkeUYjJzxGl3A= X-Received: by 2002:a17:906:d14a:b0:982:45ca:ac06 with SMTP id br10-20020a170906d14a00b0098245caac06mr10243900ejb.60.1688489949538; Tue, 04 Jul 2023 09:59:09 -0700 (PDT) MIME-Version: 1.0 From: Shaozhong SHI Date: Tue, 4 Jul 2023 17:58:58 +0100 Message-ID: Subject: Working around insert into a_table from select things from a_function To: pgsql-sql Content-Type: multipart/alternative; boundary="000000000000a62fae05ffac3332" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000a62fae05ffac3332 Content-Type: text/plain; charset="UTF-8" I can manually select columns from a_function. But, when in a loop in a do statement, it does not work. These columns are of array type. Can anyone shed light on this? Regards, David --000000000000a62fae05ffac3332 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I can manually select columns from a_function.

But, when in a loop in a do statement, it does not work.
=
These columns are of array type.

Ca= n anyone shed light on this?

Regards,
David
--000000000000a62fae05ffac3332--